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

Резултати

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

Пребарај: #fascism

当前筛选 #fascism清除筛选
RTDocumentary

@rtdocumentary · Post #505 · 13.03.2022 г., 16:02

#documentary#fascism You voted - we did it! Here’s the first full documentary we uploaded on Telegram. Fascism: A History explores the nature of the ideology and how it’s been tainting societies long after Hitler. It’s also relevant to the current events unfolding in Ukraine. The documentary reveals how NATO, created after WWII, carried on with colonial politics and expanded to the east under the auspices of bringing democracy. Share your thoughts in the comments, and don’t forget to subscribe to our channel on Odysee. All of our films are available on https://odysee.com/@RTDocumentary:4 and RTD.RT.com Follow: https://t.me/rtdocumentary

Venezuelanalysis

@venanalysis · Post #1766 · 04.10.2024 г., 17:20

In the latest VA interview, Javier Couso, a keynote speaker at the recent World Congress Against Fascism in Caracas discussed the fascist attacks on Venezuela. He highlighted Venezuela’s resistance to fascist tactics by liberal democracies, marking it as a key player in the global struggle for sovereignty and democracy. 'Venezuela is a beacon in the fight for sovereignty and true democracy,' stated Couso. Read the full interview here 👉🏼https://shorturl.at/Ej6UL #VAInterview#Fascism#PresidentialElections2024

Venezuelanalysis

@venanalysis · Post #1852 · 14.01.2025 г., 21:47

Following President Nicolás Maduro’s inauguration for a third term on January 10, violent groups vandalized Venezuelan diplomatic offices in Lisbon (Portugal), Frankfurt (Germany), Medellín (Colombia), Vigo (Spain), and San José (Costa Rica). Venezuela’s Foreign Affairs Minister, Yván Gil, described these actions as “coordinated.” “In a coordinated action by the extremists of deranged fascism, multiple consulates have been targeted by those who aim to damage our diplomatic missions like they do our beloved Bolivarian Homeland,” Gil stated on social media. Read the full report: https://shorturl.at/tC2dt #Venezuela#diplomaticmissions#fascism

Venezuelanalysis

@venanalysis · Post #1524 · 04.04.2024 г., 21:47

Venezuela's National Assembly takes a dual stance against fascism and territorial disputes, passing anti-fascism legislation while reaffirming its claim over Essequibo amid alleged CIA and US Southern Command threats. Read more 👉🏽https://shorturl.at/aeOP7 #fascism#laws#Essequibo#Venezuela

Venezuelanalysis

@venanalysis · Post #1729 · 24.08.2024 г., 18:16

In the latest VA interview, Hindu Anderi discusses Venezuela’s Antifascist Law, which is nearing approval. She explains how the Platform for Solidarity with the Palestinian Cause is actively lobbying to include Zionism in the legislation. "Zionism is fascism’s twin... a racist movement based on supremacy and expansion," Anderi states. Read the full interview here 👉🏼https://shorturl.at/xBM4T #Fascism#InternationalSolidarity#Laws#Zionism

Anarcho Gardening

@anarchogardening · Post #2993 · 15.01.2026 г., 22:23

I play Stardew often as a cozy way to wind down and disconnect from the horrors. Today I see that the Trump Administration is using it for Slopaganda. It's not even about anything consequential — apparently for the last 15 years whole milk was removed from school cafeterias, and it's been restored via executive order. #USA#Politics#Slop#ImageGen#Fascism

VoxNR

@chbouchet · Post #4085 · 26.02.2026 г., 07:10

The Stern Gang: Ideology, Politics and Terror, 1940–1949 by Joseph Heller This study of Lehi (aka the Stern Gang) attempts to demythologize the image of this extremist, Zionist underground group. The book analyzes the party's split from the Irgun Zvai Leumi (National Military Organization) and its attempts to synthesize the politics and ideals of the right and left. Lehi's leader Stern stated that he incorporated elements of both the left and the right. #Zionism#NationalBolshevism#Fascism#Nazism#Palestine

Venezuelanalysis

@venanalysis · Post #1556 · 10.05.2024 г., 21:03

On Fascism and Other Maladies: A Conversation with Luis Britto García One of Venezuela’s most respected intellectuals talks about fascism and corruption scandals in the lead-up to the presidential elections. Read the full interview here 👉🏼shorturl.at/cexUZ #VAInterview#LuisBrittoGarcia#Venezuela#presidentialelections2024#interview#corruption#fascism

Fascism Putin-style is not abstract rhetoric but a set of concrete signs: cult of personality, militarism, repression, imperial aggression. The article provides a clear analysis without euphemisms. https://yep.uz/en/2025/09/putin-fascism-signs/ #fascism#putin#dictatorship#Uzbekistan repression #militarism#censorship#ukraine#zsymbols#russianworld