TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #au

当前筛选 #au清除筛选
Addis Standard

@addisstandardeng · Post #21404 · 14.02.2026 г., 09:42

Abiy Ahmed meets António Guterres on #AU summit sidelines Abiy Ahmed held talks today with António Guterres on the sidelines of the African Union Summit, focusing on multilateral priorities, according to a statement shared by the Ethiopian premier after the meeting. Prime Minister Abiy Ahmed (PhD) met with United Nations Secretary-General António Guterres for what he described as a “constructive discussion” centered on multilateral cooperation and shared priorities. In a social media post following the meeting, the prime minister said the discussions focused on key multilateral issues, without providing additional details about specific outcomes or agreements. The talks took place alongside the ongoing African Union Summit, where leaders and high-level officials have gathered in Addis Abeba to discuss regional and international matters.

Hashtags

post-canon #au. в этом году зима пришла в середине ноября, до наступления дня рождения императора. темнеет уже рано, когда из-за комендантского часа мало кого можно встретить на улице. вместо того, чтобы готовиться ко сну, сяо чие непринужденно наблюдал, как его величество меняет верхнюю одежду и ищет теплую накидку с мехом. в первые годы правления трудно найти свободное время, они еще даже не начали подготовку к свадьбе. не было удивительно, что в какой-то момент шэнь цзэчуаню хотелось выйти на улицу незаметно для остальных. — о, — сяо цэань ловит плащ, который мужчина бросает в него. — ваше величество хочет, чтобы его сопровождали? — тебя это затруднит? разве могло? когда сяо чие поднялся на ноги, он притянул мужчину к себе, чтобы соприкоснуться носами. сяо цэань последует за шэнь ланьчжоу, куда бы тот не пошел. зонт был поднят над головами мужчин, которые в тишине шли по темной улице. снег усыпал дорогу, когда холод мало беспокоил. спустя столько лет они вернулись сюда, ходят по тем же местам, где играли роли «пленников» цюйду. если шэнь цзэчуань и сяо чие будут вот так идти дальше, то смогут в конце пути увидеть храм, где шэнь цзэчуань когда-то был заключен под стражу. зонт немного закрывает небо, когда мужчина поднял голову, чтобы взглянуть на него. снег продолжал лететь. мысли о прошлом больше не тяготят шэнь ланьчжоу, когда свобода все остаётся за пределами цюйду. но пока этот человек рядом с ним... сяо чие, который тоже находился в своих мыслях, вдруг поворачивает голову в его сторону, давая их взглядам встретиться. мужчина не улыбается, но из-за его взгляда... шэнь цзэчуань улыбается. не так широко, но его лицо выражает искренную мягкость в свете ближайшего фонаря. он имеет свой дом и в стенах дворца.

Hashtags

Addis Standard

@addisstandardeng · Post #21392 · 13.02.2026 г., 08:36

The government of #Ethiopia has declined to renew accreditation for three Addis Abeba-based journalists from #Reuters and withdrawn the accreditation to cover the 39th African Union (#AU) Summit, days after the news agency published an investigative report alleging Ethiopia is hosting a training facility linked to Sudan’s Rapid Support Forces (RSF). In a written response to Addis Standard, a Reuters spokesperson confirmed that the Ethiopian government declined to renew the journalists’ accreditation and also withdrew the outlet’s accreditation for the AU Summit. https://addisstandard.com/?p=55175

Addis Standard

@addisstandardeng · Post #21267 · 31.01.2026 г., 18:15

#TPLF welcomes #AU call for restraint, reaffirms commitment to dialogue The Tigray People’s Liberation Front (TPLF) has welcomed a call by the Chairperson of the African Union Commission, Mahmoud Ali Youssouf, urging restraint amid renewed tensions in Ethiopia’s Tigray region, reaffirming that dialogue remains the only viable path to resolving outstanding issues with the federal government. In a letter sent late on Saturday and addressed to the AU Commission Chairperson, the TPLF said it appreciates the African Union’s engagement in support of peace and stability in Ethiopia, noting that it takes “positive note” of the AU’s concern over recent developments in Tigray. The party further expressed its readiness to engage constructively in any dialogue initiative facilitated by the African Union, including through the AU High-Level Panel on Ethiopia, aimed at advancing “peace, confidence-building, and reconciliation.” https://addisstandard.com/tplf-welcomes-au-call-for-restraint-reaffirms-commitment-to-dialogue/

Hashtags

Addis Standard

@addisstandardeng · Post #21393 · 13.02.2026 г., 10:25

#AU Commission chairperson, #UN chief reaffirm partnership Addis Abeba — The Chairperson of the African Union Commission, Mahmoud Ali Youssouf, met United Nations Secretary-General António Guterres at AU headquarters in Addis Abeba on the margins of the AU summit, reaffirming commitments to multilateral cooperation, peace, and sustainable development. According to a statement released today, the Commission chairperson welcomed the UN chief’s continued engagement with African priorities, stressing that AU–UN cooperation remains central to advancing peace, security, and development amid growing global uncertainty. Both leaders reaffirmed their commitment to strengthening cooperation aligned with Africa’s continental agenda and the principles of the UN Charter. The statement said discussions focused on regional peace and security, sustainable development, and inclusive economic transformation. https://www.facebook.com/share/p/1aW7i7rGao/

Hashtags

ПретходнаСтраница 1 од 4Следна