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

Резултати

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

Пребарај: #iranusnegotiations

当前筛选 #iranusnegotiations清除筛选
Crypto M - Crypto News

@CryptoM · Post #65135 · 11.04.2026 г., 10:24

🚀 Iran-US Negotiations Progress Slower Than Anticipated According to NS3.AI, a Pakistani government official has indicated that the ongoing negotiations between Iran and the United States are progressing at a slower pace than initially expected. The official noted that while the U.S. side seems eager to achieve specific objectives, Iran is taking a more measured approach and is not rushing to reach a conclusion. #IranUSNegotiations#SlowerProgress#USIranTalks#Diplomacy#NegotiationChallenges#Iran#UnitedStates#PakistaniOfficial

Crypto M - Crypto News

@CryptoM · Post #64997 · 10.04.2026 г., 13:15

🚀 Polymarket Odds for Strait of Hormuz Normalization Drop The probability of the Strait of Hormuz returning to normal by May 31 has significantly decreased on Polymarket, with a 6% drop in one hour and a 12% decline over 24 hours. According to Odaily, the event contract stipulates that if the International Monetary Fund's Portwatch reports a seven-day moving average of ship arrivals at the Strait of Hormuz equal to or above 60 on any date from market creation until May 31, 2026, the market will resolve as 'yes'; otherwise, it will resolve as 'no'. The daily count includes container ships, bulk carriers, roll-on/roll-off ships, general cargo ships, and tankers, excluding those not reported by the IMF Portwatch. Pakistani media confirmed today that an Iranian delegation has arrived for negotiations, with major talks between Iran and the United States scheduled for tomorrow. The discussions in Pakistan will focus on reopening the Strait of Hormuz and extending the ceasefire. Additionally, the U.S. delegation participating in the talks has departed for Islamabad, Pakistan, with U.S. Vice President Vance already on board. Before departure, Vance expressed anticipation for the negotiations on the Iran issue, stating that U.S. President Donald Trump has provided 'quite clear guidelines' for the talks. #StraitOfHormuz#Polymarket#IranUSNegotiations#MaritimeTrade#Geopolitics#Ceasefire#ShipTraffic#IMFPortwatch#Pakistan#USPolitics

Crypto M - Crypto News

@CryptoM · Post #65330 · 12.04.2026 г., 23:28

🚀 Japanese Companies Face Challenges Amid Rising Oil Prices Japanese companies are entering the earnings season with a pessimistic outlook as crude oil prices surge following the unsuccessful U.S. peace talks with Iran. Bloomberg posted on X, highlighting the impact of geopolitical tensions on the global oil market. The failure of negotiations has led to increased uncertainty, affecting various sectors in Japan that rely heavily on energy imports. As oil prices climb, businesses are bracing for higher operational costs, which could impact their profitability in the coming months. The situation underscores the interconnectedness of global events and their influence on national economies. #JapaneseCompanies#OilPrices#GeopoliticalTensions#EnergyImports#OperationalCosts#Profitability#GlobalEconomy#EarningsSeason#Bloomberg#IranUSNegotiations