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

Резултати

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

Пребарај: #usdoublestandards

当前筛选 #usdoublestandards清除筛选
Red Nile

@rednile12 · Post #10499 · 27.12.2025 г., 14:03

‼️“I told you so…” Below is a video analysis I published three months ago (Aug 23, 2025), where I explained why the U.S. blocked the Ethiopia–Somaliland MOU and warned about the emerging Israel–UAE–Somaliland–U.S. alignment. Fast forward to Dec 26, 2025: 👉Israel officially recognized Somaliland. 👉The U.S. remains silent. Yet in 2024, when Ethiopia and Somaliland signed an MOU, Washington rushed to condemn it—claiming it threatened regional stability and reaffirming its commitment to Somalia’s territorial integrity and the “One Somalia” policy. So the question is unavoidable: Why does “territorial integrity” suddenly stop mattering when Israel recognizes Somaliland? Why is regional stability only invoked to block Ethiopia—but ignored when it suits U.S. allies? 🔴Red Nile’s position: This contradiction is not accidental. It fits a long-standing U.S. containment policy toward Ethiopia, especially regarding access to the Red Sea—a strategy that has shaped U.S. behavior for over 60 years. 🚨Red Nile Episode #56 🔴The U.S. Somaliland Double Game: Geopolitics or Hypocrisy? 🎞Video Overview: U.S. Senator Ted Cruz pushes for Somaliland’s recognition. This episode dissects the real geopolitical logic behind Washington’s shifting posture in the Horn of Africa. 🔷Key Issues Covered: 🇺🇸 Why the U.S. may recognize Somaliland to counter China & Russia ⚠️ The contradiction: opposing the Ethiopia–Somaliland deal while tolerating recognition 🔁 The Kosovo / Taiwan model 🌍 The roles of Israel, UAE, Egypt, and Turkey 🎥Watch here: https://youtu.be/XEPgFIa6tac?si=VtYr4ktnAxMZHb-B 🚨የቴድ ክሩዝ ደብዳቤ እና የሶማሊላንድ የእውቅና ጥያቄ | በአፍሪካ ቀንድ የቻይናን ተጽእኖ ለመግታት | የአሜሪካ ሴናተር ቴድ ክሩዝ ፕሬዝዳንት ትራምፕ ለሶማሊላንድ እውቅና እንዲሰጥ በደብዳቤ ያቀረቡትን ጥያቄን ከአሜሪካ የአፍሪካ ፖሊሲ ጋር በተያያዘ እንመለከታለን። 🎯 በዚህ ቪዲዮ፦ 🔹 አሜሪካ ከ"አንድ ሶማሊያ" ወደ ሶማሊላንድ እውቅና የመስጠት ሀገራዊ ጥቅም መሸጋገሯ 🔹 በየመኑ ሁቲ፣ ቻይና እና ራሺያ መካከል የተደረገው ስምምነት 🔹 የኮሶቮ አልያም የታይዋን አይነት ፖሊሲ 🔹 ግብጽ አና ቱርክን ላለማስኮረፍ መጠንቀቋ 🔹 አስራኤልና ኤምሬት ቅድሚ እውቅና እንዲሰጡ ማበረታታት 🟦 በመጨረሻም አሜሪካ አሁን ላይ ለሶማሊላን እውቅና ለመስጠት ፍላጎት ካሳየች፤ ታዲያ ለምንድነው በኢትዮጵያና በሶማሊላንድ መካከል የተደረገውን ስምምነት የተቃወመችው? 🎥ይመልከቱ: https://youtu.be/XEPgFIa6tac?si=VtYr4ktnAxMZHb-B 📢Subscribe, like, and share #RedNile#ቀይአባይ#Ethiopia#Somaliland#Somalia#USPolicy#Israel#HornOfAfrica#RedSea#Geopolitics#TedCruz#China#Russia#USDoubleStandards