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

Пребарај: #militarisation

当前筛选 #militarisation清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28048 · 19.01.2026 г., 17:06

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, January 15, 2026) 🔹News conference by Russia's Foreign Minister Sergey Lavrov 🔹#KievRegimeCrimes 🔹Ukraine crisis 🔹Torchlit procession in Lvov 🔹London’s aggressive anti-Russia line 🔹On the destruction of the monument to Soviet heroes in the Czech Republic 🔹Certain statements by the Yad Vashem leadership 📖Read 📺Watch *** #LavrovSchedule On January 20, Russia's Foreign Minister Sergey Lavrov will hold a high-profile news conference to review Russian diplomacy’s outcomes in 2025. The news conference will be livestreamed on the Ministerial website and social media and translated into English, French, and Spanish. #KievRegimeCrimes The neo-Nazi Kiev regime continues to reveal its terrorist nature. From January 1 to 12, at least 152 Russian civilians were affected by Ukrainian shelling and drone attacks. 45 people were killed, including 3 children. In the first minutes of 2026, in a premeditated attack, the armed forces of Ukraine used UAVs to hit a café and a hotel complex in the village of Khorly, Kherson Region, where families with children, a crowd of about 100 people, had come together to ring in the New Year. 29 people, including 2 children, were killed. The Foreign Ministry provided an assessment of this barbaric atrocity by Ukrainian neo-Nazis on January 1. #Ukraine#West The fact that the West has no genuine interest in ending the conflict – just as it showed no desire for peace from the outset – is clearly demonstrated by the uninterrupted operation of Rzeszów Airport in Poland. Since 2022, it has served as a key logistics hub through which a continuous flow of military cargo has been delivered to the Ukrainian Armed Forces. Observers note that the British and Canadian air forces, as well as private transport companies affiliated with the US military, are most active in these operations. The European NATO member states’ actions aimed at saturating Kiev with military and financial resources speak far more eloquently about their true intentions than any hypocritical statements about a desire for peace. These actions speak louder than words, declarations, or diplomatic rhetoric. #Britain#CoalitionOfTheWilling For several months, we have observed a consistent escalation by Britain of aggressive and belligerent rhetoric against Russia. For instance, on January 6 in Paris, on the sidelines of a gathering of the coalition of the willing, British Prime Minister Keir Starmer, alongside French President Emmanuel Macron and head of the Kiev regime Zelensky, signed a declaration of intent providing for the deployment of so-called multinational forces – in essence, Western occupation troops – to Ukraine under the guise of ensuring “future peace agreements.” ❗️ We must warn that any attempts to realise this criminal scheme with the coalition of the willing will leave responsibility for the lives of British subjects entirely on London’s shoulders. Our position remains unchanged and well-known – any foreign military contingents in Ukraine will be considered legitimate targets for the Armed Forces of the Russian Federation. The British component will be no exception. #Finland#Militarisation#BalticRegion On January 10, 2026, Helsinki’s decision to denounce the Convention on the Prohibition of the Use, Stockpiling, Production and Transfer of Anti-Personnel Mines and on their Destruction came into force. Russia views this decision by the Finnish authorities as yet another manifestation of their destructive policy to militarise the country. Russia reserves the right to respond to any hostile actions in a proportionate way, including by military and technical means, if necessary.

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, November 14, 2025) 🔹#KievRegimeCrimes 🔹Ukraine crisis 🔹Moldovan government’s decision to denounce seven CIS agreements 🔹Developments in El Fasher, Sudan 🔹The US counter-narcotics policy in Latin America 🔹Anti-Russian conference in Dublin 🔹G7 Foreign Ministers’ Meeting in Canada 📰Read 📺Watch #KievRegimeCrimes The neo-Nazi regime in Kiev continues to terrorise civilians in Russia. Over the past week, 53 Russian citizens suffered from artillery shelling and drone strikes, with 8 people killed and 45 injured, including six children. Russian courts continue to hand down sentences to Ukrainian neo-Nazis and mercenaries. In absentia, mercenaries from Georgia, Colombia, and the Czech Republic who participated in combat on the side of the Ukrainian Armed Forces have been sentenced to 28, 13.5, and 13 years in prison. #Ireland#EU#Militarisation Militaristic rhetoric of the [Brussels bureaucracy] finds fertile ground in Dublin, where the ruling coalition <…> is pursuing a course to revise constitutional restrictions on the participation of Irish service members in overseas missions. The Irish run the risk of becoming pawns in reckless geopolitical games of the Westerners (Anglo-Saxons), who are clearly acting against Russia, with all the negative consequences for [Ireland] that this entails. #US#LatinAmerica Since September 2025, we have been witnessing an unprecedented military campaign launched by Washington in Latin America under the pretext of allegedly combating drug-trafficking routes into the United States. We are extremely concerned by the military methods chosen by the United States to address this issue, which amount to little more than blatant interference in the internal affairs of Latin American states. We firmly oppose the use of force or the threat of force to interfere in internal affairs under various pretexts, including counter-narcotics operations. #AxisJapan#WarCrimes#NoStatuteOfLimitations We continue our work on disclosing information about the crimes of Japanese militarism. We have repeatedly emphasised that these crimes have no statute of limitations. Procedural actions aimed at bringing all those responsible to justice continue to this day. Between March and June, the Prosecutor General’s Office of the Russian Federation adopted decisions annulling the conclusions issued in the 1980s–2000s that had granted rehabilitation to 24 Japanese citizens. Following the review of court rulings in cassation and supervisory instances, it was established that these individuals are not subject to rehabilitation. Their guilt has been fully proven. #US#Tariffs From an economic standpoint, the introduction of 500% tariffs on goods from third countries that purchase Russian oil and gas seems absurd. This is tantamount to the discontinuation of all trade relations between countries, as such a tariff rate is prohibitive. Russian energy resources are supplied to dozens of states around the world, including Europe, the Asia-Pacific region, China, and India. It is downright impossible to substitute such volumes of oil and natural gas on the global market within reasonable timeframes. Those who call for [such measures] are likely unaware of the negative consequences this would have both for the United States itself and for the global economy as a whole. Moreover, such a step would be a gross violation of international trade law.