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

Резултати

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

Пребарај: #volnoye

当前筛选 #volnoye清除筛选
DruschbaFM - English

@druschbaFm_en · Post #52625 · 28.03.2025 г., 08:05

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 28 March⚡️ 🔴#Sumy Direction: 🔴In #Sudzha Sector, to the west on Ukrainian lands, the battle for #Vladimirovka reportedly continued {still unproven; 1st blue arrow on map}. 🟡 For #Veselovka as well, but confirmed {1st black arrow}. 🟡 In #Zhuravka as well. As for... 🟡#Basovka. 🟡#Novenkoye, is RFAF controlled {1st red arrow}. 🟡 In #Kursk region, the 'Sudza Gas Transmission Point' and the 'Border Checkpoint' came under RFAF control {2nd red arrow}. 🎬 Video 🟡#Gogolevka, reportedly has been taken by Russian troops {4th black arrow}. 🟡#Oleshnya remains AFU controlled. 🟡 In #Guyevo, according to unconfirmed reports, the RFAF control the northern part. Fierce fighting continues. 🟡#Gornal remains under save AFU control. 🔴In #KrasnayaYaruga Sector, the battle for #Popovka and #Demidovka continued, so far without tangible success for the AFU {5th/6th black arrow}. 🟡 At #Grafovka, lull. 🟡 At #Prilesye as well. 🗺 All on Map 1 🔴 In #Kharkov Direction, positional battles and aviation operations in the areas of #Liptsy, ​​Volchansk and strikes at AFU rear supply routes. 🔴#Svatovo Front: 🔴 In #Kupyansk and #Borovaya Sector, ongoing battles without significant changes. 🔴In #Liman Sector, Russian troops have advanced towards #Katerinovka and #Novoye. 🔴In #Seversk Sector, fighting at #Belogorovka (#LPR) and #Verkhnekamenskoye is ongoing. 🔴#ChasovYar Direction: 🔴In #ChasovYar and #Toretsk Sectors, the fighting continued, without major changes. 🔴#Pokrovsk Direction: 🔴 On the right Flank, far to the east, battles are taking place in the area of #​​Panteleymonovka. Further west for #Tarasovka and the territory to its west. 🔴 South of the City, the situation remains dynamic. 🟡 In #Peschanoye, Russian troops advanced reportedly in the western and central village parts {according to the map the AFU lost control of its (black added) boundaries}. 🗺 Map 2 🟡 In #Kotlino, the AFU entered (confirmed), and reportedly seized nearly all of the settlement's boundaries. 🗺 Map 3 🔴 On the left Flank, the area of #Udachnoye is sunk in the fog of war. 🟡 In #Uspenovka, Russian troops are reportedly clearing the village and have advanced southwest of it into... 🟡#Novoaleksandrovka, the fighting for which has begun. Further south... 🟡 On #Preobrazhenka's approaches, the fighting continues, as well as towards #Troitskoye and #Bogdanovka. 🔴#Komar Direction: 🔴In #Konstantinopol Sector, the same named village is in the fog of war. 🟡 In #Razliv, to the southwest, the RFAF have reportedly entered the village. 🔴 In #Komar Sector, Russian assault groups broke reportedly through north of #Dneproenergiya and attack the eastern part of #Vesyoloye. The village is also under assault from the south. 🟡 In #Volnoye Pole, Russian forces lost their positions in the centre, but consolidated in the eastern village part. 🔴#Zaporozhye Direction: 🔴In #Orekhov Section, fighting continues in the​#MalayaTokmachka - #Rabotino area. The main battles are taking place further west: 🟡 In #Shcherbaki, the RFAF have advanced into the village's centre. The AFU counterattacks. 🟡#MalyeShcherbakito the west, is still not completely RFAF controlled. 🟡 In #Stepovoye, further west, fighting continues with varying success. 🟡 In #Lobkovoye as well. 🟡#Pyatikhatki is RFAF controlled. 🔴 In #Kherson Direction, fights in the island zone. 💥#OldRussia: 🔵 In #Belgorod Region, the villages of #Belyanka, #Nechayevka, #Tishanka, #Shakhovka, #Smorodino and #Kukuyevka came under AFU fire. 💥#RestUkraine: 🔵 The RFAF struck objects in #Kiev, #Odessa, #Dnepropetrovsk, #Kharkov, #Khmelnitsky, #Nikolayev, #Cherkassy, and Poltava regions. 🎞 Video Source 🗺 Maps @olegtsarov; @petrenko_iHS 📋 Sources: CC; Tsarov; ⚡️2M; 🇺🇦Fiend;😼Kotenok 🕰As of 28 Mar 2025; 06:37 GMT+3;📃27 Mar 📱 Join GLOBAL DEPTH to boost your TG Feed 💬Join Military Chat for Comments & Discussions 🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update