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 слични објави

Пребарај: #cleanair

当前筛选 #cleanair清除筛选
Green University CA | Official

@centralasian_greenuniversity · Post #457 · 04.12.2025 г., 10:08

Green University and Clean Air Asia Sign Memorandum of Understanding 🔴Green University has officially signed a Memorandum of Understanding with Clean Air Asia to strengthen collaboration on air quality, climate change, and sustainable urban development. ✔️Through this partnership, we will: ✅Conduct joint research and expert projects ✅Organize trainings, workshops, and educational programs ✅Support sustainable city initiatives ✅Enable student and faculty exchanges 🔴This collaboration marks an important step toward cleaner air and a greener future for Asia. #GreenUniversity#CleanAirAsia#Sustainability#CleanAir#ClimateAction ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube

EKOLOG.UZ| ENG

@ekologuzenglish · Post #10870 · 20.12.2025 г., 16:06

Environmental Stickers for Vehicles in Uzbekistan — Free and Voluntary 🚗 📅 On December 19 of this year, the National Committee for Ecology and Climate Change, together with relevant ministries and agencies, held an awareness-raising event at the “Fayzobod” Vehicle Diagnostic Inspection Center located in the Mirabad district of Tashkent. The center operates under the Road Safety Service of the Public Security Department of the Ministry of Internal Affairs. The event was attended by representatives of government bodies, civil society institutions, non-governmental non-profit organizations, political parties, citizens’ self-governance bodies (mahallas), as well as mass media representatives. ♻️ What is an environmental sticker? An environmental sticker is not a fine or a restriction, but an indicator of a vehicle’s environmental condition. It is a symbol of the driver’s responsibility and contribution to clean air and a sustainable future for the country. ❗️Important: Environmental stickers are provided free of charge. 📍 How and to whom are the stickers issued? Environmental stickers are issued: free of charge based on the vehicle owner’s voluntary electronic application; during vehicle registration or re-registration, based on the results of the first free diagnostic inspection. 🚦 Environmental categories of vehicles Within the framework of the system, vehicles will be gradually classified into the following categories: 🟢 “clean” 🟡 “moderate” 🔴 “polluting” The category is determined according to environmental standards, while the color of the sticker reflects the level of the vehicle’s impact on the environment. 🔄 Owners of vehicles classified as “moderate” or “polluting” have the right once a year to undergo a free re-diagnostic inspection, improve the environmental category of their vehicle, and receive a new environmental sticker. 🌱 Why is this important? Despite the measures being taken, air pollution levels in the country remain high. An extremely dry autumn, annual reductions in water resources, as well as emissions from industrial enterprises and vehicles have led to the fact that Tashkent and other settlements are among the regions with high levels of air pollution. 📊 According to medical statistics, in 2024, 11,034.8 cases of respiratory and allergic diseases per 100,000 population were recorded nationwide, a significant proportion of which occurred among children. Air pollution directly affects public health, socio-economic development, and the international image of the country. 📜 Legal framework The “Environmental Transport” system is being introduced in accordance with the Resolution of the Cabinet of Ministers of the Republic of Uzbekistan dated November 28, 2025, No. 750, and will be implemented in stages: 2025–2027 — Tashkent city 2028–2030 — Nukus city and regional centers 2031–2034 — all other regions of the country 🏙 Environmental zones The boundaries of environmental zones will be determined by local Councils of People’s Deputies. Within these zones, the movement of vehicles belonging to the “moderate” and “polluting” categories without an environmental sticker will be restricted. At the same time, social and compensation mechanisms are предусмотрены for residents and workers permanently living or working in these areas. ✨ An environmental sticker is a small step with a big impact. It helps foster environmental awareness, reduce air pollution, and make our cities healthier and more comfortable to live in. 📢 Join us! Get your environmental sticker for free and become part of Uzbekistan’s environmental transformation 🌍💚 #EnvironmentalTransport#EcoSticker#CleanAir#Ecology#Tashkent#Uzbekistan ☘️ Read the latest environmental news on @ekologuz. Subscribe to our page and send your suggestions and feedback via @eklguz_bot.

Green University CA | Official

@centralasian_greenuniversity · Post #559 · 17.12.2025 г., 07:21

Air Quality Assessment in Termez 2025: Toward Cleaner Air and Clearer Skies 🔴On December 16, 2025, Green University, together with UNEP and the Finnish Meteorological Institute, presented the results of the air quality assessment in Termez. The event brought together government representatives, experts, development partners, media, and civil society. 🔴The assessment, conducted at the request of the National Committee on Ecology and Climate Change of Uzbekistan, was based on data from the first automatic reference air monitoring station installed in Termez in 2024 with the support of the Zamin Foundation. The study identified key pollution sources and provided science-based recommendations to improve air quality. 🔴The discussion also covered new air quality management strategies, including the work of Uzhydromet and youth-focused environmental initiatives by the Zamin Foundation. #AirQuality#CleanAir#Termez#Uzbekistan#GreenUniversity#UNEP#FMI#ClimateAction#EnvironmentalProtection ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube