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

Пребарај: #usearnings

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

@CryptoM · Post #64598 · 09.04.2026 г., 09:55

🚀 STOCKS | BlackRock CIO Warns of Potential Downgrade in Stock Earnings Due to Middle East Conflict Helen Jewell, BlackRock's International Chief Investment Officer for Fundamental Equities, has indicated that the ongoing Middle East conflict could necessitate a reduction in stock earnings expectations. According to Jin10, Jewell noted that current earnings forecasts for this year remain high, ranging from 15% to 18%, suggesting significant room for downward adjustments. She expressed skepticism about the stability of earnings predictions in the consumer sector, particularly given the impact of interest rates and inflation stemming from the Middle East situation. Preliminary signs indicate potential changes in earnings expectations. After weeks of analysts raising forecasts, Citigroup's U.S. Earnings Momentum Index turned negative last Friday, with downgrades outnumbering upgrades by the largest margin in nearly a year. Despite this, analysts' predictions remain optimistic amid high uncertainty and rising price pressures. Compiled data shows that the market generally expects the S&P 500's earnings per share to grow by 16% this year, marking the strongest performance since 2021. The first-quarter earnings season is set to officially begin next week. Jewell highlighted that the potential for earnings growth in energy and materials stocks is offset by the downside risks in industries such as aviation, suggesting that overall earnings will remain relatively stable. #stocks#BlackRock#MiddleEastConflict#earningsforecast#consumersector#interestrates#inflation#Citigroup#USearnings#S&P500 #energy#materials#aviation#investment