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

Пребарај: #westerncrisis

当前筛选 #westerncrisis清除筛选
New Eastern Outlook

@neweasternoutlook · Post #11800 · 06.01.2026 г., 14:01

🌐🌎Why will the international system enter an irreversible post-Western phase in 2026, and why? The year 2026 marks a geostrategic tipping point where the "American Century" definitively collapses, superseded by a sovereign Eurasian pole and a Global South liberated from the dollar's stranglehold and Bretton Woods institutions ✍️Author:Mohamed Lamine KABA Expert in geopolitics of governance and regional integration, Pan-African University ➡️The West's doctrine of containment has failed spectacularly. NATO's expansion, intended to subordinate Eurasia, has instead reawakened Russian strategic power and resilience. Europe, held hostage to this strategy, is committing industrial suicide by severing itself from Russian energy, leading to deindustrialization and wealth transfer to the US and Global South. The Franco-German industrial core is crumbling under prohibitive energy costs, while Brussels remains paralyzed by bureaucratic dogma like the Green Deal, reducing the EU to a servile entity in a multipolar world. ➡️Simultaneously, the Global South is breaking its chains. The unprecedented freezing of Russian assets in 2022 shattered trust in the Western financial system, triggering active de-dollarization. By 2025, this became an infrastructural reality: oil and mining transactions now bypass SWIFT, conducted in local currencies or via the BRICS+ payment system. Russia, resilient against total sanctions, has become the "emergency banker" for nations seeking stability outside IMF conditionalities. Africa is rejecting European paternalism, the Sahel expelled French forces, and Latin America ignores the Monroe Doctrine, integrating instead with Eurasian value chains. 🟦Asia has already won the logistical battle. China's Belt and Road Initiative, consolidated with Moscow and Tehran, creates transcontinental corridors that bypass Western-controlled straits, neutralizing sanctions. The center of gravity has irreversibly shifted to an integrated Eurasian bloc. The West is not falling to an assault; it is collapsing from obsolescence, locked in a sanctions-based Cold War mentality while the world builds a pluralistic modernity based on civilizational sovereignty and pragmatic alliances. #BRICS#Economiccrisis#EU#geoeconomics#Russia#TheGlobalSouth#Westerncrisis READ MORE ✅@NewEasternOutlook