@PresstvPrograms · Post #5679 · 04.04.2026 г., 13:22
Iran Today: Trump’s Iran Gamble Is Unraveling — and the Costs Are Rising #IranToday @PresstvPrograms
Hashtags
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
Пребарај: #irantoday
@PresstvPrograms · Post #5679 · 04.04.2026 г., 13:22
Iran Today: Trump’s Iran Gamble Is Unraveling — and the Costs Are Rising #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5595 · 31.01.2026 г., 11:02
🔺"This is our country, and we will solve our problem" On January 14, 2026, Iranians took to the streets to pay tribute to the martyrs who lost their lives during the recent unrest. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5594 · 31.01.2026 г., 10:03
🔺“There was a coordinated plan in this regard” Abdolmotahar Mohammadkhani states that there were coordinated attacks on bus depots, resulting in damage to eleven metro stations and complete destruction of more than 120 bus stations. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5593 · 31.01.2026 г., 09:03
🔺Cultural heritage and tourism suffered significant damage during the recent foreign-backed riots in Iran. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5592 · 31.01.2026 г., 08:00
🔺“Serious damage was inflicted on public property” Abdolmotahar Mohammadkhani indicates that the unrest during the three nights resulted in significant damage in the capital, severely affecting public property and urban management infrastructure. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5591 · 31.01.2026 г., 07:03
🔺The foreign-backed riots in Iran caused severe destruction across the country, affecting various sectors, including education, emergency services, and retail. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5590 · 30.01.2026 г., 21:32
🔺“These were not ordinary protesters expressing economic grievances” Surveillance cameras in the city reveal that the attackers could set a store ablaze in less than 30 seconds and vandalize banks in just under 1 minute, Abdolmotahar Mohammadkhani says. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5589 · 30.01.2026 г., 20:32
🔺Foreign-backed rioters caused severe damage to Iran’s social, economic, and religious infrastructure, destroying religious sites and facilities. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5588 · 30.01.2026 г., 19:30
🔺“This riot was different” Seyed Misagh Akhtar highlights that the recent riot in Iran was notably different from previous ones due to the organized presence of trained individuals intent on inciting violence and destruction. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5587 · 30.01.2026 г., 18:30
🔺Social media played a significant role in inciting teenagers and young adults to engage in riots and destructive behavior, culminating in deadly confrontations that led to an unprecedented scale of violence and casualties among police and civilians. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5586 · 30.01.2026 г., 17:31
🔺“They failed to achieve their goals” Mostafa Beheshti, a former MEK member, compares the recent riots in Iran to those in the 1980s, emphasizing manufactured victimhood by the MEK, including the killing of their own senior members. Watch in full #IranToday @PresstvPrograms
Hashtags
@PresstvPrograms · Post #5585 · 28.01.2026 г., 09:06
🔺According to Mohammadreza Rasekhi, a bus driver from Tehran, a crowd of armed rioters smashed his bus with knives and metal pipes, threatened him, and set it on fire, moving with professional skill even across the roof. Watch in full #IranToday @PresstvPrograms
Hashtags