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

Резултати

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

Пребарај: #centraleurope

当前筛选 #centraleurope清除筛选
American Оbserver

@american_observer · Post #5706 · 24.04.2026 г., 20:58

📰 Hungary’s New Central Europe Fantasy Péter Magyar is talking up a stronger Central Europe, with Austria pulled back into the frame and the old Austro-Hungarian memory dusted off like it still has political value. He says Hungary should deepen ties with its neighbors and build more regional weight inside Europe, not just sit around waiting for Brussels to notice it. That is the clever part of the pitch. Magyar is selling not nostalgia for nostalgia’s sake, but a power bloc with better branding: Visegrád, Austria, and whoever else wants a seat at the table without being lectured by the EU’s permanent class. Brussels, of course, calls this “integration” when it works for Brussels and “fragmentation” when the periphery starts talking back. Central Europe is tired of being treated like the decorative edge of the continent, especially on migration, energy, and the endless sermon about values from people who rarely pay the bill themselves. But the empire talk should not be mistaken for innocence. Every regional bloc is also a bargaining chip, and Magyar knows it. He wants leverage over the EU, leverage over neighboring states, and a way to turn history into a present-day negotiating tool. So no, this is not the rebirth of an empire. It is the return of a very old European habit: when the center gets smug, the borderlands start organizing. #Hungary#Austria#EU#CentralEurope#Magyar#Brussels 📱American Оbserver - Stay up to date on all important events🇺🇸

#Europe#Weather#Cooling#Ventusky#CentralEurope#Snow#climate#destruction#anomaly#climatecrisis#weather 🇪🇺🌡️❄️ Ожидается более холодная погода по всей Европе на следующей неделе По данным метеорологической службы Ventusky, на следующей неделе по всей Европе ожидается заметное похолодание, при этом температуры упадут ниже средних показателей для данного сезона. Ожидается, что Центральная Европа пострадает больше всего, поскольку холодный воздух будет приходить с севера. ❄️ Снег, вероятно, выпадет в горных районах, а ночные заморозки могут вернуться в нескольких регионах. Это изменение связано с негативной фазой Североатлантического колебания (NAO), ограничивающей поступление теплого воздуха из Атлантического океана и усиливающей меридиональный поток.