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

Резултати

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

Пребарај: #gustavopetro

当前筛选 #gustavopetro清除筛选
Venezuelanalysis

@venanalysis · Post #2039 · 25.07.2025 г., 20:35

📰 NEWS | Maduro Confirms Sale of Venezuelan Fertilizer Firm Monómeros to Colombia, Ending Privatization Rumors Venezuelan and Colombian authorities are engaged in talks for the sale of agrochemical producer Monómeros. A confidential agreement reportedly set a base price. The firm, which had a tumultuous time under Venezuelan opposition management, is set to be purchased by the Colombian state as the Petro government aims to maintain stability in the agricultural inputs market. Read our report: https://venezuelanalysis.com/news/maduro-confirms-sale-of-venezuelan-fertilizer-firm-monomeros-to-colombia-ending-privatization-rumors/ #Monomeros#Fertilizer#Venezuela#GustavoPetro

Venezuelanalysis

@venanalysis · Post #1810 · 19.11.2024 г., 21:22

Colombia’s corporate watchdog has stepped in to oversee Monómeros, the Venezuelan state-owned agrochemical firm, as concerns grow over a potential sale. President Petro opposes privatization plans, citing risks to the agricultural sector. Read the full report here: https://shorturl.at/KAezV #colombiavenezuelarelations #gustavopetro#monómeros#monomeros

Crypto M - Crypto News

@CryptoM · Post #64736 · 09.04.2026 г., 16:48

🚀 Colombia Limits Pension Funds' Overseas Investments to Boost Local Economy Colombia has announced a new policy to cap pension funds' overseas investments at 30%, a decision supported by President Gustavo Petro. Bloomberg posted on X, highlighting that this move is intended to stimulate domestic economic growth by redirecting billions of dollars into local assets. The policy aims to strengthen the country's financial markets and encourage investment within Colombia, potentially leading to increased economic stability and development. #Colombia#PensionFunds#OverseasInvestments#LocalEconomy#EconomicGrowth#FinancialMarkets#Investment#GustavoPetro#EconomicPolicy#Development

Crypto M - Crypto News

@CryptoM · Post #65077 · 10.04.2026 г., 20:08

🚀 Colombia to Implement 100% Tariffs on Ecuadorian Imports Amid Diplomatic Strain Colombia has announced plans to impose 100% tariffs on imports from Ecuador, escalating trade and diplomatic tensions between the two nations. Bloomberg posted on X, highlighting the growing discord between Colombian President Gustavo Petro and Ecuadorian President Daniel Noboa. The decision marks a significant shift in the trade relationship between the neighboring countries, potentially impacting economic ties and regional cooperation. The move comes amid broader geopolitical challenges in the region, with both leaders navigating complex domestic and international pressures. The tariff imposition is expected to affect various sectors, including agriculture and manufacturing, as businesses and consumers brace for potential disruptions. Observers are closely monitoring the situation, anticipating further developments in the diplomatic standoff. #Colombia#Ecuador#Tariffs#TradeWar#DiplomaticTensions#GustavoPetro#DanielNoboa#EconomicImpact#RegionalCooperation#Agriculture#Manufacturing