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

Резултати

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

Пребарај: #womensrights

当前筛选 #womensrights清除筛选
Venezuelanalysis

@venanalysis · Post #1901 · 07.03.2025 г., 17:37

📝 INTERVIEW | Feminism and Revolution: A Conversation with Alejandra Laprea In the latest VA interview, Alejandra Laprea, a popular feminist and member of the World March of Women, discusses how popular feminism in Venezuela continues to shape the revolution from the ground up. She stresses the importance of unity within the feminist movement, advocating for a collective, consensus-based agenda. "We are experiencing a moment of setbacks at the global, continental, and national levels. In Venezuela, the feminist movement must come together and build a common agenda – one that is truly collective and based on consensus, rather than a mere compilation of different perspectives." States Alejandra. 🔗 Read the full interview here: https://shorturl.at/ppCss #Feminism#Sanctions#WomensRights

Venezuelanalysis

@venanalysis · Post #2295 · 08.03.2026 г., 14:45

🗒️🗣️ INTERVIEW | Aimee Zambrano: ‘Let Us Demand a Justice System with a Gender Perspective’ In the latest VA interview, activist and researcher Aimee Zambrano takes stock of gender violence in Venezuela and the necessary state policies to respond. Through the Utopix Femicide Monitor, a platform that collects cases from open sources, Zambrano and her team have tracked patterns since 2019. However, Zambrano warns that other forms of violence are increasing, particularly attempted femicides, sexual abuse, and cases linked to the disappearance of women and girls. She also argues that Venezuela needs a justice system with a gender perspective and a coordinated state response involving multiple ministries, including education, housing, and communication, to address gender violence. Read the full interview here 👉🏾https://shorturl.at/tCbzV #Feminisms#WomensRights

🇿🇦"You Strike a Woman, You Strike a Rock" Today is National Women’s Day in South Africa. 🗓 On August 9, 1956, a protest march was held in Pretoria against the extension of the humiliating Pass Laws to black women — apartheid-era regulations requiring all black South Africans to carry a “dompas” containing their personal details and movement permits. ✊ The march was led by four courageous women: Helen Joseph, Rahima Moosa, Sophie Williams, and Lillian Ngoyi. A monument in central Pretoria now honors their legacy. 📌 The slogan "You strike a woman, you strike a rock" became a powerful emblem of women’s strength and resilience: oppression only solidifies their resolve. #SouthAfrica#NationalWomensDay#PassLaws#Apartheid#Pretoria#WomensRights#History

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40811 · 17.03.2026 г., 07:02

Female genital mutilation (FGM) also misleadingly known as "female circumcision" removes and injures parts of the female genitals for non-medical reasons. It is usually performed on girls from infancy to age 15. It has no health benefits and can cause severe pain, heavy bleeding, infection, shock, infertility, childbirth complications, and psychological trauma. Over 230 million women and girls worldwide have undergone FGM. No religion requires or asks for this practice. 🚫✂️👧🌍⚖🪧 Warning, the link and information about this is not for the faint of heart. Research about this might be disturbing to some people. [Read more at your own discretion] [Poll about your opinions] @googlefactss #facts#humanrights#health#womensrights#education#globalissues#childabuse

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40796 · 14.03.2026 г., 20:05

Mojtaba Khamenei became Supreme Leader of Iran after his father, Ali Khamenei, was killed in a U.S.–Israeli airstrike. He leads with hard-line policies, controlling the military, security forces, and political decisions. For ordinary Iranians, this means strict government control, limited political freedom, limited internet, harsh enforcement of laws, and continued tensions with the West. Daily life and dissent will likely remain tightly restricted under his rule. 🕌🇮🇷⚔️ [Read more] @googlefactss #Iran#MojtabaKhamenei#SupremeLeader#politics#newsfacts#freeIran#protests#womensrights