TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #239 · 3 мај

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

Пронајдени 3 слични објави

Пребарај: #staxxx

当前筛选 #staxxx清除筛选
CaptKyle Patriots Ⓡ 🍊

@CaptKylePatriots · Post #284636 · 03.05.2026 г., 20:16

🔠 🔠 🔠 Keychains can be found HERE 🔠 🔠 🔠 3D Printed Custom Night Lights (you send your image and I'll make it happen) Offering custom 3D print services. Just message me for anything you may need (@teamanons1) 🔠 🔠 🔠 - 10g Year of the Snake Bill Shaped Bars 🐍 🔠 🔠 🔠- Premium Copper on website 1oz Colorized Patriotic Bars 1oz Silver Cards (different styles) Back in stock 1g Team Anon Bars 👉 (@pmkllc) Introducing 🔠🔠🔠 🔤🔤🔤🔤🔤🔤🔤 on the website here 👇 https://precious-metal-trump-notes.myshopify.com/collections/pmk-raffles?utm_campaign=share_orders&utm_content=android&utm_medium=product-links Just click SHOP ALL on website to view ALL available products. Check out all the items featured on Capt Kyle's Telegram 👇 https://preciousmetalkeepsakes.com/collections/capt-kyles-featured-products Also. If you have a bigger budget and want some heavy metal. Please just message me (@teamanons1) or text me directly (number lower on post) prices are way lower for bigger budget! I offer a WIDE variety of different types of Precious Metals from 1 gram to kilos (kilos are not on website only @pmkllc) always sigma tested and verified genuine .999 fs/fg or your money back! GUARNTEED! Www.preciousmetalkeepsakes.com Just click 🔤🔤🔤🔤🔤🔤🔤here For any questions or concerns call or text anytime (502-252-1039) I'll be glad to help in anyway or message me here on telegram 📱 (@teamanons1) I always have 👇 ✅10oz bars of silver ✅5oz bars of silver ✅1oz Copper rounds. Several designs to choose from ✅Lots of other Precious Metal items available ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 Www.preciousmetalkeepsakes.com 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ ➡️I have BETTER Prices and items not on website here @pmkllc To follow new arrivals/Giveaways RAFFLES and everything Precious Metals Join our telegram page here (@pmkllc) 😇 🥰 🥰 🥰 🥰 🥰 🥰 🥰 😇 ➡️Go to @pmkllc if your interested in having a chance of winning precious metals for a fraction of the price ➡️RAFFLES I met Capt Kyle at the beginning of my Awakening journey and he has been nice enough to allow me to share my website on his channel and has never asked for anything in return. I greatly appreciate you Capt Kyle 🙏 Www.preciousmetalkeepsakes.com #silver#preciousmetals#ta#staxxx 🦅🇺🇸💪🔥

CaptKyle Patriots Ⓡ 🍊

@CaptKylePatriots · Post #284332 · 26.04.2026 г., 20:24

🔠 🔠 🔠 Keychains can be found HERE 🔠 🔠 🔠 3D Printed Custom Night Lights (you send your image and I'll make it happen) Offering custom 3D print services. Just message me for anything you may need (@teamanons1) 🔠 🔠 🔠 - 10g Year of the Snake Bill Shaped Bars 🐍 🔠 🔠 🔠- Premium Copper on website 1oz Colorized Patriotic Bars 1oz Silver Cards (different styles) Back in stock 1g Team Anon Bars 👉 (@pmkllc) Introducing 🔠🔠🔠 🔤🔤🔤🔤🔤🔤🔤 on the website here 👇 https://precious-metal-trump-notes.myshopify.com/collections/pmk-raffles?utm_campaign=share_orders&utm_content=android&utm_medium=product-links Just click SHOP ALL on website to view ALL available products. Check out all the items featured on Capt Kyle's Telegram 👇 https://preciousmetalkeepsakes.com/collections/capt-kyles-featured-products Also. If you have a bigger budget and want some heavy metal. Please just message me (@teamanons1) or text me directly (number lower on post) prices are way lower for bigger budget! I offer a WIDE variety of different types of Precious Metals from 1 gram to kilos (kilos are not on website only @pmkllc) always sigma tested and verified genuine .999 fs/fg or your money back! GUARNTEED! Www.preciousmetalkeepsakes.com Just click 🔤🔤🔤🔤🔤🔤🔤here For any questions or concerns call or text anytime (502-252-1039) I'll be glad to help in anyway or message me here on telegram 📱 (@teamanons1) I always have 👇 ✅10oz bars of silver ✅5oz bars of silver ✅1oz Copper rounds. Several designs to choose from ✅Lots of other Precious Metal items available ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 Www.preciousmetalkeepsakes.com 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ ➡️I have BETTER Prices and items not on website here @pmkllc To follow new arrivals/Giveaways RAFFLES and everything Precious Metals Join our telegram page here (@pmkllc) 😇 🥰 🥰 🥰 🥰 🥰 🥰 🥰 😇 ➡️Go to @pmkllc if your interested in having a chance of winning precious metals for a fraction of the price ➡️RAFFLES I met Capt Kyle at the beginning of my Awakening journey and he has been nice enough to allow me to share my website on his channel and has never asked for anything in return. I greatly appreciate you Capt Kyle 🙏 Www.preciousmetalkeepsakes.com #silver#preciousmetals#ta#staxxx 🦅🇺🇸💪🔥

CaptKyle Patriots Ⓡ 🍊

@CaptKylePatriots · Post #283643 · 11.04.2026 г., 22:29

🔠 🔠 🔠 Keychains can be found HERE 🔠 🔠 🔠 3D Printed Custom Night Lights (you send your image and I'll make it happen) Offering custom 3D print services. Just message me for anything you may need (@teamanons1) 🔠 🔠 🔠 - 10g Year of the Snake Bill Shaped Bars 🐍 🔠 🔠 🔠- Premium Copper on website 1oz Colorized Patriotic Bars 1oz Silver Cards (different styles) Back in stock 1g Team Anon Bars 👉 (@pmkllc) Introducing 🔠🔠🔠 🔤🔤🔤🔤🔤🔤🔤 on the website here 👇 https://precious-metal-trump-notes.myshopify.com/collections/pmk-raffles?utm_campaign=share_orders&utm_content=android&utm_medium=product-links Just click SHOP ALL on website to view ALL available products. Check out all the items featured on Capt Kyle's Telegram 👇 https://preciousmetalkeepsakes.com/collections/capt-kyles-featured-products Also. If you have a bigger budget and want some heavy metal. Please just message me (@teamanons1) or text me directly (number lower on post) prices are way lower for bigger budget! I offer a WIDE variety of different types of Precious Metals from 1 gram to kilos (kilos are not on website only @pmkllc) always sigma tested and verified genuine .999 fs/fg or your money back! GUARNTEED! Www.preciousmetalkeepsakes.com Just click 🔤🔤🔤🔤🔤🔤🔤here For any questions or concerns call or text anytime (502-252-1039) I'll be glad to help in anyway or message me here on telegram 📱 (@teamanons1) I always have 👇 ✅10oz bars of silver ✅5oz bars of silver ✅1oz Copper rounds. Several designs to choose from ✅Lots of other Precious Metal items available ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 Www.preciousmetalkeepsakes.com 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ 🟥 ⏰ ➡️I have BETTER Prices and items not on website here @pmkllc To follow new arrivals/Giveaways RAFFLES and everything Precious Metals Join our telegram page here (@pmkllc) 😇 🥰 🥰 🥰 🥰 🥰 🥰 🥰 😇 ➡️Go to @pmkllc if your interested in having a chance of winning precious metals for a fraction of the price ➡️RAFFLES I met Capt Kyle at the beginning of my Awakening journey and he has been nice enough to allow me to share my website on his channel and has never asked for anything in return. I greatly appreciate you Capt Kyle 🙏 Www.preciousmetalkeepsakes.com #silver#preciousmetals#ta#staxxx 🦅🇺🇸💪🔥