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

Резултати

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

Пребарај: #multilateralism

当前筛选 #multilateralism清除筛选
Venezuelanalysis

@venanalysis · Post #2243 · 14.01.2026 г., 04:02

🖊OPINION | The Kidnapping of Venezuela’s Sovereignty "The kidnapping of Nicolás Maduro and National Assembly deputy Cilia Flores should compel a fundamental reassessment of the state of the international order." Tricontinental Institute researchers Atul Chandra and Tings Chak look at the recent US attacks and their implications for multilateralism and international law. Follow the link to read the article: https://venezuelanalysis.com/analysis/the-kidnapping-of-venezuelas-sovereignty/ #InternationalLaw#Multilateralism#Sovereignty#NicolasMaduro

Russian Mission to ASEAN

@aseanrussia · Post #374 · 24.04.2023 г., 14:24

🌐Today is International Day of Multilateralism and Diplomacy for Peace. On December 12, 2018, the UN General Assembly passed a resolution A/RES/73/127 on marking this day. The document notes that the International Day aims to promote UN values and to reaffirm the trust of the world’s nations in the goals and principles of the UN Charter. 🇷🇺🇺🇳 Russia is invariably committed to the policy of upholding multilateralism and the UN’s leading role in global affairs and is actively involved in efforts to overhaul the UN and to adapt it to new international realities. This is particularly topical today when a narrow group of states advancing the rules-based order concept exerts unprecedented pressure on the UN and other multilateral institutions. ✍️ Under the Russian Foreign Policy Concept, approved on March 31, 2023, Russia intends to prioritise efforts to reinstate the UN’s role as a central coordination mechanism in coordinating the interests of UN member states. At the same time, one of the main aims of national foreign policy is to strengthen the potential of multilateral regional associations and integration organisations involving Russia. For example, this refers to measures to enhance the international role of #BRICS, the #SCO, the #CIS, the #EAEU, the #CSTO, #RIC and other interstate associations and international organisations, as well as mechanisms with significant Russian involvement. ⏰ Today, on April 24, FM Sergey Lavrov will take part in one of the key events of Russia’s presidency of the UN Security Council, specifically, the open debate on "Effective multilateralism through the defence of the principles of the Charter of the United Nations." The debate will be streamed live on all our feeds. #UNCharterIsOurRules#Multilateralism

Marx21.it

@marx21news · Post #9207 · 14.11.2025 г., 14:44

La Convenzione di Hanoi: un nuovo pilastro globale contro il crimine cibernetico Il 25 ottobre a Hà Nội è stata firmata la Convenzione ONU contro il crimine cibernetico, primo strumento universale che unisce sicurezza digitale, cooperazione giudiziaria e tutela dei diritti umani in un’unica cornice globale. Con quasi 70 Paesi firmatari già nella giornata inaugurale, il trattato segna una svolta nella governance del cyberspazio e un importante riconoscimento del ruolo crescente del Việt Nam come attore diplomatico di primo piano. La “Convenzione di Hanoi” mira a: Armonizzare le definizioni di reati informatici e le procedure investigative. Favorire lo scambio di prove elettroniche e la cooperazione giudiziaria. Proteggere i diritti fondamentali e promuovere la fiducia tra Stati. Rafforzare la sicurezza digitale globale senza sacrificare la libertà online. Per il Việt Nam, ospitare la firma è molto più che un gesto simbolico: è la conferma di una leadership multilaterale proattiva e della volontà di contribuire alla costruzione di un cyberspazio sicuro, equo e aperto. Come ha ricordato António Guterres, “la vera forza della Convenzione sarà trasformare le firme in azione concreta”. Se il mondo saprà cogliere questa opportunità, Hà Nội 2025 resterà nella storia come il giorno in cui la comunità internazionale ha iniziato davvero a mettere legge nel cyberspazio. #HanoiConvention#Cybercrime#UN#Vietnam#DigitalDiplomacy#CyberSecurity#Multilateralism https://www.marx21.it/internazionale/la-convenzione-di-hanoi-come-nuovo-pilastro-globale-contro-il-crimine-cibernetico/

@RusEmbMalta: 🇷🇺🛡️13th International Security Meeting to Be Held in Moscow 📅 On May 27–29, 2025, Moscow will host the 13th International Meeting of High Representatives for Security Issues under the chairmanship of Secretary of the Russian Security Council Sergey Shoigu. 🌍 More than 150 countries from the Global South and East have been invited to participate, along with representatives of the #CIS, #CSTO, #EAEU, #SCO, and over 20 international organizations. 🗂️ The meeting will focus on strengthening international security cooperation. Discussions will cover a broad range of challenges, including terrorism, extremism, transnational crime, drug trafficking, and emerging threats. 🧭 Since 2010, this annual platform has brought together senior security officials to build trust, share expertise, and coordinate efforts on pressing global security issues. 📌 Media accreditation is open until May 20, 2025. #Shoigu#SecurityCouncil#InternationalMeeting#Moscow2025#GlobalSecurity#Counterterrorism#Multilateralism#CIS#SCO#BRICS#CSTO#EAEU#GlobalSouth