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

Пребарај: #neonazicrimes

当前筛选 #neonazicrimes清除筛选
Россия в ОБСЕ

@RusMissionOSCE · Post #7493 · 14.10.2025 г., 08:21

🎙Rodion Miroshnik, Ambassador at Large of the Russian Foreign Ministry on the Crimes of the Kiev Regime, gave an interview to Komsomolskaya Pravda(October 13, 2025) #BuchaHoax • Western officials are now trying to avoid any discussion of the Bucha hoax. We’ve sent out official notes requesting a list of the individuals they accuse Russia of killing. These inquiries were left unanswered for months, and when replies finally came, they were absurd – along the lines of: “a decision was made to maintain confidentiality regarding the deceased”. • Each provided name would allow at least a preliminary investigation to establish the facts. Our experts, after examining photos and videos, noted that the victims had died at different times – evidenced by livor mortis marks on some bodies, traces of different types of soil on the clothing, and other inconsistencies. Essentially, the bodies of unidentified people were gathered from various locations. • The masterminds behind this provocation had a clear goal – to derail the nearly finalized Istanbul peace agreements. The goal was achieved – the negotiations were abandoned. #ReunitingFamilies • The purpose behind spreading false claims about “children abducted by Russia” is to accuse Russia of genocide. Among its definitions is the forcible transfer of children from one nationality to another. In reality, none of those who authored these accusations ever cared to learn the fate of a single specific child. • We are working closely with the Russian Presidential Commissioner for Children's Rights, Maria Lvova-Belova. At our latest meeting in Istanbul, the Ukrainian side handed over a list of 339 names. We began to thoroughly verify each case. It turned out that more than 50 people on the list had never been on Russian territory at all. • No child is being forcibly kept in Russia. Some arrived before the conflict, living with one parent or grandparents. Decisions about their future are made by relatives – but the process takes time: confirmation of documents, family ties, and genetic relationship. So far, just over 100 children have been reunited with their families through the mediation of Qatar and the UAE. • At the same time, we have many situations where parents living in Russia cannot reach their children who remain in Ukraine, because the Kiev regime classifies them as Ukrainian citizens and categorically refuses to assist in reunification. #NeoNaziCrimes#Torture • Several reports documenting cases of torture of civilians in Russia's Kursk Region have been prepared and officially submitted to the UN, OSCE, and the International Committee of the Red Cross. • Ukraine maintains an entire network of secret prisons, which international organizations are denied access to. Many of our POWs pass through these facilities before being transferred to official detention centers – where they report widespread abuse, torture, and even killings. #KievRegimeCrimes • Establishing any kind of international tribunal in the near future is practically impossible. Such a body can only be created by a UN Security Council resolution – where three Western countries supporting the current Kiev regime have veto power. • Many human rights organizations today are directly controlled by the sponsors of these crimes. A number of them have turned into propaganda outlets that simply “bark” in any direction they are told. • Most of the crimes committed by the Kiev regime occur on the territory of Russia’s new and historical regions. Accordingly, prosecutions are being carried out under the Criminal Code of the Russian Federation. • Around 650 Ukrainian militants have already stood trial, with some sentenced to between 8.5 years and life imprisonment. The Investigative Committee is conducting more than 7,500 criminal cases. Full interview (🇷🇺)