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

Пребарај: #leveragedposition

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

@CryptoM · Post #64988 · 10.04.2026 г., 12:58

🚀 Hyperliquid Platform Whale Holdings Reach $3.721 Billion, Data Shows Hyperliquid platform whales currently hold positions valued at $3.721 billion, according to ChainCatcher. Data from Coinglass reveals that long positions account for $1.902 billion, representing 51.13% of the total holdings, while short positions amount to $1.818 billion, making up 48.87%. The long positions have incurred a loss of $6.8165 million, whereas the short positions have gained $17.7438 million. Notably, a whale address identified as 0xa5b0..41 has engaged in a 15x leveraged long position on ETH at a price of $2,148.7, currently showing an unrealized profit of $2.6246 million. #Hyperliquid#WhaleHoldings#ChainCatcher#Coinglass#LongPositions#ShortPositions#ETH#LeveragedPosition#Crypto#UnrealizedProfit

Crypto M - Crypto News

@CryptoM · Post #65374 · 13.04.2026 г., 03:00

🚀 Hyperithm's Oil Short Positions Experience Rapid Losses Analyst @ai_9684xtpa posted on X that Hyperithm's oil short positions have seen significant changes in just one day. Initially, these positions had a floating profit of $5.886 million, but they have now turned into a floating loss of $2.1 million. The CL short position, valued at $37.88 million, was opened at a price of $95.211 and currently has a floating loss of $1.402 million. Meanwhile, the BRENTOIL short position, valued at $35.17 million, was opened at a price of $95.986 and is experiencing a floating loss of $620 thousand. Currently, the address holds the largest leveraged position in Hyperliquid BRENTOIL and the third-largest leveraged position in CL. #Hyperithm#oil#shortpositions#floatingloss#CL#BRENTOIL#leveragedposition#Hyperliquid#analyst

Crypto M - Crypto News

@CryptoM · Post #65184 · 11.04.2026 г., 16:56

🚀 Hyperliquid Whale Positions Reach $3.905 Billion Hyperliquid platform's whale positions have reached a total of $3.905 billion, according to ChainCatcher. Data from Coinglass reveals that long positions account for $1.992 billion, representing 51.01% of the total, while short positions amount to $1.913 billion, making up 48.99%. The profit and loss for long positions stands at $29.0862 million, whereas short positions show a loss of $13.7305 million. Notably, a whale address, 0xa5b0..41, has engaged in a 15x leveraged long position on ETH at a price of $2,148.7, currently showing an unrealized profit of $6.6987 million. #Hyperliquid#WhalePositions#Billion#ChainCatcher#Coinglass#LongPositions#ShortPositions#ETH#LeveragedPosition#ProfitLoss