@maninamerica · Post #2812 · 01.02.2025 г., 19:01
USDA ordered to remove ALL references to #ClimateChange from their websites.😮
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #climatechange
@maninamerica · Post #2812 · 01.02.2025 г., 19:01
USDA ordered to remove ALL references to #ClimateChange from their websites.😮
Hashtags
@MyGovHindi · Post #6601 · 15.04.2023 г., 09:55
#climatechange #WorldBank
Hashtags
@MyGovHindi · Post #6600 · 15.04.2023 г., 08:55
#climatechange #WorldBank
Hashtags
@MyGovHindi · Post #6599 · 15.04.2023 г., 07:55
वर्ल्ड बैंक इवेंट में प्रधानमंत्री के संबोधन की मुख्य बातें। #climatechange #WorldBank
Hashtags
@FeruzbekSayfullayev · Post #3550 · 26.03.2026 г., 02:46
🚨 O‘zbekiston aholisi favqulodda vaziyatlar haqida masjidlar orqali ogohlantiriladi 🤝 Biz Favqulodda vaziyatlar vazirligi bilan hamkorlikda ofatlar yuzaga kelganda imkon qadar ko‘proq aholiga tezkor axborot yetkazishni ta’minlashga qaratilgan innovatsion yechimni amalga oshirmoqdamiz. 📢 Mazkur tashabbus doirasida 7 ta hududdagi 272 ta masjid maxsus uskunalar bilan jihozlandi. Ushbu uskunalar orqali FVVning tezkor xabarlari masjidlarning tashqi ovoz kuchaytirgichlari yordamida uzatiladi va keng jamoatchilikka tez ravishda yetkaziladi. 👥 Loyiha hisob-kitoblariga ko‘ra, masjidlar orqali ogohlantirish tizimi taxminan 6,5 million nafar aholini qamrab olishi mumkin. 🌍 Iqlim xavflari ortib borayotgan bugungi sharoitda erta ogohlantirish tizimlarini mustahkamlash inson hayotini saqlab qolishda muhim ahamiyatga ega. Batafsil: https://go.undp.org/SMy - - - - 🚨 Жители теперь могут получать экстренные оповещения через громкоговорители мечетей. 🤝 Мы совместно с МЧС внедрили инновационное решение, направленное на оперативное информирование как можно большего числа людей во время чрезвычайных ситуаций. 📢 В рамках инициативы 272 мечети в 7 регионах оснащены специальными устройствами, позволяющими передавать экстренные сообщения МЧС через внешние громкоговорители мечетей и оперативно доводить информацию до широкой аудитории. 👥 По оценкам проекта, оповещение через мечети позволяет охватить около 6,5 млн человек. 🌍 В условиях роста климатических рисков укрепление систем раннего оповещения играет ключевую роль в спасении жизней. Подробнее: https://go.undp.org/SQZ #MHEWS#ClimateChange
Hashtags
@upscir · Post #3252 · 05.12.2023 г., 03:24
Multilateral gatherings like COP-28 compel all governments to pay attention to #ClimateChange and also facilitate #ClimateJustice for poor countries, says Dr. Navroz Dubash. Watch the full episode of this informative TV show to learn more. CLICK HERE 👇 https://youtu.be/6nlFE6iMSXE?si=F1k0afntcu09hXMX
Hashtags
@MyGovCoronaNewsdesk · Post #12548 · 15.04.2023 г., 09:58
#climatechange #WorldBank
Hashtags
@MyGovCoronaNewsdesk · Post #12547 · 15.04.2023 г., 08:58
#climatechange #WorldBank
Hashtags
@MyGovCoronaNewsdesk · Post #12546 · 15.04.2023 г., 07:57
#climatechange #WorldBank
Hashtags
@reutersworldchannel · Post #149553 · 19.10.2021 г., 09:47
Designer Vivienne Westwood shares her 'Letter to Earth' British fashion designer Vivienne Westwood and Nigerian author Ben Okri read out their 'Letters to the Earth' as part of a campaign urging action against climate change in the run-up to the U.N. #COP26 summit. #News#Reuters#ClimateChange Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@reutersworldchannel · Post #149550 · 19.10.2021 г., 02:04
Explained: Key things to watch for at COP26 As public pressure grows for action to limit climate change, world leaders from nearly 200 countries will convene in Glasgow, Scotland, at the end of October for the COP26 conference. Here are the key climate issues that need resolution. #COP26#News#Reuters#ClimateChange Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@venanalysis · Post #2062 · 12.08.2025 г., 20:51
📝 INTERVIEW | Esquisa Omaña: ‘Agroecology Is the Alternative to the Climate and Civilization Collapse’ In the latest VA interview, Venezuelan biologist and ecologist Esquisa Omaña, a researcher at the Venezuelan Institute for Scientific Research (IVIC) and doctoral candidate in Agrarian Social Studies at the University of Córdoba (Argentina), discusses agroecology as a grassroots alternative to agribusiness. She is also active in the GMO-Free Venezuela Campaign and the Pueblo a Pueblo Plan. 'Agroecology or nothing,' states Omaña, stressing that only community-based farming rooted in Indigenous and Afro-descendant traditions can confront the climate and civilization collapse. She points to rotational conuco agriculture and initiatives like Pueblo a Pueblo, which supplies 100 tons of food monthly to schools, as proof that local models can feed people while challenging corporate control of food systems. 🔗 Read the full interview here: https://shorturl.at/zWvmQ #Agroecology#ClimateChange#PuebloaPueblo