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

Пребарај: #unrealizedloss

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

@CryptoM · Post #64884 · 10.04.2026 г., 06:54

🚀 Trader Increases BTC Short Position Amid Market Fluctuations A well-known trader, identified as 'Set 10 Big Goals First,' has updated his trading positions, according to ChainCatcher. The trader's BTC short position has not triggered a stop-loss and has been increased to 2,567.49 BTC, with an average opening price of $71,554.61. Currently, this position is experiencing an unrealized loss of $1.374 million. Meanwhile, the trader's ETH short position stands at 38,465.22 ETH, with an average opening price of $2,248.74, resulting in an unrealized profit of $2.018 million. Overall, the trader's positions reflect a combined unrealized profit of approximately $644,000. #BTC#ETH#CryptoTrading#ShortPosition#MarketFluctuations#UnrealizedProfit#UnrealizedLoss

Crypto M - Crypto News

@CryptoM · Post #65328 · 12.04.2026 г., 23:23

🚀 Strategy Faces $14.5 Billion Unrealized Loss on Bitcoin Holdings Strategy has reported an unrealized loss of approximately $14.5 billion on its Bitcoin holdings for the first quarter. According to NS3.AI, the company last acquired 4,871 Bitcoin on April 6, spending over $329.8 million. This purchase increased Strategy's total Bitcoin holdings to 766,970, valued at around $54.5 billion at current market prices. Historically, when Michael Saylor, the company's leader, shares the Bitcoin acquisition chart, it often precedes a new purchase announcement within days. #Strategy#Bitcoin#UnrealizedLoss#BitcoinHoldings#MichaelSaylor#NS3AI#MarketPrices#Cryptocurrency#Investment#BTC