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

Резултати

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

Пребарај: #putin

当前筛选 #putin清除筛选
Ultimora.net - POLITICS

@ULTIMORAPOLITICS · Post #42402 · 08.12.2022 г., 12:35

❗Vladimir #Putin:"Per quanto riguarda la lentezza dell'operazione militare speciale, ovviamente può essere un processo a lungo termine" @UltimoraPolitics

Hashtags

Daniel Prinz News

@DanielPrinzOffiziell · Post #9738 · 10.11.2025 г., 05:31

„ Trump wollte den Krieg beenden. #Putin auch.“ Wer hat abgelehnt? Paris, London, Brüssel." - Robert Fico, Ministerpräsident der Slowakei Kanal folgen: 🔥https://t.me/antiilluminaten Kanal freiwillig unterstützen: 🙏🏻tinyurl.com/2asjym25 BÜCHER + KRISENVORSORGE + NATURPRODUKTE 🧰https://t.me/derbuechershop

Hashtags

रूस के राष्ट्रपति व्लादिमीर #Putin 4-5 दिसंबर को भारत आ रहे है. 23rd India–Russia Annual Summit सिर्फ रिश्तों का आकलन नहीं, बल्कि आने वाले वर्षों की रणनीतिक दिशा तय करने का मंच बनने वाला है. भारत के लिए इस यात्रा के रणनीतिक, आर्थिक और भू-राजनीतिक मायने क्या हैं? देखिए चर्चा ‘Mudda Aapka’ में. 🔗https://youtu.be/brbElWF83Ug

Hashtags

Covid-19

@Covid19 · Post #3168 · 21.02.2023 г., 10:25

#Putin parla degli aiuti all’Italia durante il COVID-19: "La Russia sa essere amica e mantenere la parola data, non deluderà nessuno e sosterrà sempre i suoi partner in situazioni difficili, lo dimostra il nostro aiuto ai Paesi europei, come l'Italia, durante il momento più difficile della pandemia di Covid, esattamente come stiamo andando in aiuto nelle zone del terremoto" @ultimoralive

Hashtags

@RusEmbMalta: 💬Exclusive Interview with Vladimir #Putin by Journalist Pavel Zarubin (February 24, 2025) Key highlights from the conversation: 🔹Rare-earth metals: Russia possesses significantly larger reserves than Ukraine and is open to cooperation, including the U.S. companies. 🔹Zelensky’s position: He is losing support, avoiding elections, and issuing harmful military orders driven by politics. 🔹Trump’s stance on Ukraine: His push for elections aims to stabilize Ukraine, not to favor Russia. 🔹European leaders: They are too entangled with Kiev to change course without losing face. 🔹U.S.-Russia dialogue: Recent high-level talks focused on building trust, with potential further discussions. 🔹Defense budgets: Russia is open to discussing Trump’s idea of cutting military spending by 50%. 🔹Economic cooperation: Russian and American companies are already discussing major projects, linked to Ukraine negotiations. Read in full here.

Hashtags

EmbajadaRusaVen

@embajadarusaven · Post #1179 · 31.10.2023 г., 20:32

Presidente 🇷🇺Vladimir #Putin: ☝️ Debemos entender claramente quién está en realidad detrás de la tragedia de los pueblos de Oriente Próximo y otras regiones del mundo, quién está organizando el caos mortal y quién se beneficia de él. Hoy, en mi opinión, esto ya se ha hecho obvio y claro para todos: los patrones están actuando abierta y descaradamente. 🏴‍☠ Las actuales élites gobernantes de Estados Unidos y sus satélites son los principales beneficiarios de la inestabilidad mundial. Extraen de ella su sangrienta renta. ❗Quiero subrayar: en nuestros enfoques hacia la situación en Oriente Próximo nunca han existido intereses egoístas, intrigas ni dobles fondos, a diferencia de lo que ocurre en Occidente. Hemos manifestado y seguimos manifestando abiertamente nuestra posición, que no cambia de un año para otro. ☝️ La clave para resolver el conflicto reside en la creación de un Estado palestino soberano e independiente, un Estado palestino de pleno derecho.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #352 · 08.04.2023 г., 07:04

🗓On 5 April 2023 Vladimir Putin received letters of credence from 17 newly-appointed foreign ambassadors with Brunei🇧🇳 and Cambodia🇰🇭 among them.The ceremony was held in the St Alexander Hall of the Grand Kremlin Palace 💬Vladimir #Putin: "The situation in the world is currently challenging, with many disagreements that may seem irreconcilable at times and often hinder normal productive cooperation between states. 🤝However, I would like to hope that the activity of your embassies will help to foster cooperation between our countries. You may rest assured that all of your initiatives and proposals that are in line with this endeavour will have the support of both Russian officials and our business and public circles. 🌐Russia is open to constructive partnership with all countries without exception. We do not intend to isolate ourselves nor do we have any prejudiced or hostile intentions towards anybody and expect that our partners will adhere to the principles of equality and mutual consideration of interests in their relations with Russia".

Hashtags

🇷🇺 Russia's President Vladimir #Putin: 💬 In many Western countries, people are subjected to persecution just because they are originally from Russia. They are being denied medical care, their children are expelled from schools, parents are losing their jobs, and Russian music, culture, and literature are being banned. In its attempts to “cancel” Russia, the West tore off its mask of decency and began to act crudely showing its true colours. One cannot help but remember the anti-Semitic Nazi pogroms in Germany in the 1930s, and then pogroms perpetrated by their henchmen in many European countries that joined the Nazi aggression against our country during the Great Patriotic War. (excerpt from a meeting on socioeconomic support for regions, held by President Vladimir Putin on March 16, 2022)

Hashtags

Ultimora.net - POLITICS

@ULTIMORAPOLITICS · Post #42012 · 28.10.2022 г., 17:09

Il presidente russo, Vladimir #Putin, si è congratulato con Giorgia #Meloni per la sua nomina a presidente del Consiglio. L'agenzia ufficiale russa Ria Novosti, sottolinea come Putin non abbia riservato lo stesso trattamento della Meloni per i due premier britannici saliti a Downing Street negli ultimi due mesi, Liz Truss e Rishi Sunak. @ultimorapolitics

EmbajadaRusaVen

@embajadarusaven · Post #1209 · 14.11.2023 г., 15:19

⚡️Los Juegos del Futuro - faltan 1⃣0⃣0⃣ días! Presidente #Putin: 💬 La idea misma de combinar los deportes clásicos y los ciberdeportes refleja la imagen de #Rusia🇷🇺 abierta a todo lo nuevo, con ganas de avanzar y al mismo tiempo capaz de combinar armoniosamente patrimonio original y modernidad. 🖥🤸 Los Juegos del Futuro - el primer torneo polideportivo de la historia de la humanidad en el concepto fígital. Un espectáculo deportivo de nuevo formato que unificará la competición en las dimensiones física y digital. 🇷🇺 Los primeros Juegos del Futuro se celebrarán del 21 de febrero al 3 de marzo de 2024 en Kazán. 🌏 Atletas profesionales y clubes de todo el planeta están invitados a los Juegos del Futuro. El torneo se desarrollará en formato fígital, durante el cual los participantes lucharán al límite de sus capacidades físicas y digitales.

Hashtags

123•••10•••20•••2829
ПретходнаСтраница 1 од 29Следна