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 слични објави

Пребарај: #cheremoshnoye

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

@druschbaFm_en · Post #52510 · 25.03.2025 г., 08:03

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 25 March⚡️ 🔴#Sumy Direction: 🔴In #Sudzha Sector, to the west on Ukrainian lands, for the claimed RFAF entry into #Vladimirovka is still confirmation or other proof missing (so, the black arrow on map turned blue). 🟡 At #Veselovka, the RFAF crossed the border and entered the settlement (1st black arrow). 🟡 For #Zhuravka, the battle continues. 🟡 In #Basovka, as well. 🟡#Novenkoye, is under safe RFAF control (1st red arrow). 🟡 In #Kursk region, according to unconfirmed reports, the RFAF took the 'Sudza Gas Transmission Point' and a battle for the checkpoint is taking place (4th black arrow). 📌 If true and the RFAF wins, a cauldron could form. 🟡#Gogolevka is likely still under AFU full control (2nd blue arrow). 🟡 In #Melovoy, the battle likely continues (5th black arrow). 🟡#Oleshnya, #Guyevo and #Gornal remain under AFU control for now (4 large blue arrows on map). 🔴 In #KrasnayaYaruga Sector, the AFU tried to take #Popovka (6th black arrow) to outflank the embattled #Demidovka (7th black arrow). In the course of the battle, Russian border guards defeated AFU special forces and got later on evacuated by reinforcement. The battle for both villages continue. The situation is dynamic. Further AFU action is likely. 🟡#Grafovka, remains under RFAF control. 🟡#Prilesye as well. 🗺 All on Map 1 🔴 In #Kharkov Direction, on #Svatovo Front, in #ChasovYar and #Kherson Directions, the battles continued without major changes. 🔴#Pokrovsk Direction: 🔴 On the right Flank, far east, the RFAF took #Aleksandropol and entered #Panteleymonovka's southeastern part north of it. Reportedly the latter has also been taken (unconfirmed). The assaults are towards #Toretsk in the north. 🟡 From #ZelenoyePole, further west, the RFAF advanced (unconfirmed) ca. 600 m towards #Aleksandropol2nd. 🟡 In #Tarasovka, reportedly there was also a Russian progress. 🔴 South of the City, fierce fighting is taking place. 🟡 For #Shevchenko, the battle continues in its northeastern part. 🟡#Peschanoye came under RFAF control (unconfirmed). 🟡#Kotlino as well. 🔴 On the left Flank, north of #Udachnoye, the RFAF are assaulting the mine. 🟡 In #Udachnoye, Russian troops consolidated in the eastern settlement part. 🟡 In #Solyonoye, to the south, the AFU have entered the western part of the settlement. 🔴#Komar Direction: 🔴In #Konstantinopol Sector, the battles continued. 🔴 In #Komar Sector, the RFAF have advanced towards the settlement of #VolnoyePole and entered its eastern outskirts. 🔴#Zaporozhye Direction: 🔴For the #Orekhov Section, we are forced to correct the situation based on confirmed data and video evidence. 🟡#Shcherbaki is likely completely AFU controlled. 🟡 Nearby #MalyeShcherbakito the west continues to be contested. The RFAF hold positions in the south of the village. 🟡#Stepovoye's alleged takeover did not take place. The Russians have entered the village several days ago. Heavy fights are ongoing. 🗺 Map 2 🎬 Video 1 🟡#Lobkovoye to the south is contested. The current situation is unclear. The Russians have at best entered its southeastern edge. 🟡 For #​​Pyatikhatki's alleged takeover, confirmation or video evidence is still missing. The AFU is likely still present in the western part of the village. 💥#OldRussia: 🔵In #Belgorod Region, the AFU targeted the civilian population in #Shebekino town and in the villages of #YasnyeZori and #Cheremoshnoye. In the area of #Mikhaylovka (#LPR), the AFU killed 6 people, 3 among them journalists, in a double HIMARS strike. 💥#RestUkraine: 🔵 On #Kiev,#Poltava and #Izyum regions, the RFAF carried out strikes. In #Sumy region, a missile has hit militants and equipment in the residential area. 🎬 Video 2 🎞 Vids Source 1; Source 2; 🗺 Maps @olegtsarov; @creamy_caprice 📋 Sources: CC; Tsarov; ⚡️2M; 🇺🇦Fiend;😼Kotenok 🕰As of 25 Mar 2025; 06:32 GMT+3;📃24 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