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

Резултати

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

Пребарај: #mayotte

当前筛选 #mayotte清除筛选
Egountchi Behanzin Officiel

@egountchibehanzinofficiel · Post #7853 · 17.12.2024 г., 14:49

#MAYOTTE : DES MILLIERS DE VIES PERDUES À CAUSE DU MÉPRIS DE LA #FRANCE COLONIALE. Le cyclone qui a récemment frappé Mayotte, entraînant des milliers de décès, met en lumière la politique coloniale dont souffrent les populations mahoraises. Plutôt que d'investir des milliards d'euros dans des événements comme les Jeux Olympiques ou de soutenir des groupes terroristes, la France devrait réorienter ses efforts vers le développement de Mayotte, en améliorant l'accès à l'eau, aux infrastructures, au logement et aux services sanitaires pour les habitants laissés pour compte par les gouvernements successifs. REJOIGNEZ LA RÉSISTANCE SUR lTELEGRAM. 🔺Pour les numéros français : https://t.me/egountchibehanzinTV 🔻Pour les numéros internationaux : https://t.me/EgountchiBehanzinOfficiel @egountchibehanzinTV

Russian Consulate in Cape Town

@rusconct · Post #2406 · 31.03.2025 г., 14:34

🎙Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova(Moscow, March 20, 2025) 🔹 FM Sergey Lavrov's schedule 🔹Murder of Russian media representatives 🔹 Kiev regime crimes 🔹 Third anniversary of the Bucha provocation 🔹 The West's lies regarding Minsk Agreements 🔹 France’s plans to build another naval base on the island of Mayotte 🔹 On the situation with an Italian journalist Andrea Lucidi in Estonia 🔹VI International Arctic Forum "The Arctic: Territory of Dialogue" 🔹 Artek’s upcoming centenary 📰Read 📺Watch *** #CrimesAgainstJournalists On March 24, Izvestiya’s frontline correspondent Alexander Fedorchak, Zvezda TV channel cameraman Andrey Panov, and Alexander Sirkeli, the crew’s driver, were killed in the Lugansk People’s Republic following a targeted artillery strike carried out by the Ukrainian Armed Forces. On the same day, TASS correspondent Mikhail Skuratov was on an editorial assignment in the Kursk Region’s Sudzha District where the Ukrainian Banderites wounded him. On March 26, 2025, Channel One’s car with a camera crew in it ran up against a landmine planted by the Ukrainian Armed Forces in the Belgorod Region. This terrorist attack claimed the life of Anna Prokofyeva, who was a young talented journalist, while cameraman Dmitry Volkov suffered severe wounds. #KievRegimeCrimes The Investigative Committee of Russia reports that 167 peaceful residents were killed and 500 more injured in the Kursk Region from 2022 until 2025. The crimes of the Armed Forces of Ukraine have impacted 43'000 people. Several thousand civilian infrastructure facilities have been destroyed and damaged. According to the Russia's Foreign Ministry’s Ambassador at large Rodion Miroshnik, in the past seven days, from March 17 to 23, 16 Russian civilians were killed in the zone of contact, and 134 more injured, including 4 minors, following attacks by the Armed Forces of Ukraine. On March 25-26, Ukrainian UAVs hitenergy facilities in the Bryansk and Kursk regions. An attempted attack on a gas reservoir was thwarted in Crimea. #BuchaHoax April 3 marks the third anniversary of the day when Zelensky’s regime and its Western curators staged a bloody provocation in Bucha and the world was shown "evidence" of the alleged murders of innocent civilians, aimed at denigrating the Russian Armed Forces in the eyes of the international community. The main goal of the war party campaign was clear: to torpedo the understandings reached during the negotiations in Istanbul, aimed at a peaceful settlement of the Ukrainian crisis. Russia has provided multiple refutations of numerous fakes about Bucha. We constantly recall that while this settlement was controlled by the Russian military, the civilians were allowed to move around freely, use mobile communications, and receive humanitarian aid. Our units left Bucha on March 30, 2022. We know that the Kiev regime is preparing an international conference on Bucha this May with the assistance of Great Britain. We are certain that this provocation is yet another attempt to dust off old narratives and repackage false claims about the alleged involvement of the Russian Armed Forces in the events in Bucha. The goal remains the same: to torpedo efforts for a peaceful settlement. #France#Mayotte#Colonialism We have taken note of the statement made by French Minister of the Overseas Manuel Valls in the National Assembly on March 12 regarding the plans to submit a draft law to Parliament on the construction of a second French naval base on the island of Mayotte. Russia has consistently opposed the unjustified militarisation of any territories, recognising the dangerous consequences this poses for peace and security in certain regions. We believe that the existing military base in Dzaoudzi on the island of Mayotte is intended not as much for defence against hypothetical external threats (as Paris tries to convince everyone), but rather for control over the illegally held overseas territory – one of the last remnants of the colonial era.