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

Пребарај: #oilfutures

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

@CryptoM · Post #65284 · 12.04.2026 г., 14:26

🚀 Oil Futures Surge as Trump Orders Naval Blockade of Strait of Hormuz Oil futures on Hyperliquid experienced a significant increase following U.S. President Donald Trump's directive to implement a naval blockade of the Strait of Hormuz. According to NS3.AI, West Texas Intermediate (WTI) crude oil perpetual futures surged by 7%, reaching $96.40, while Brent futures rose by 6% to $96. The trading volume for WTI futures hit $1.53 billion, ranking it as the third-most-traded instrument on the platform, following Bitcoin (BTC) and Ethereum (ETH). Emergency reserve releases have been compensating for a daily shortfall of approximately 4.5 to 5 million barrels, but this buffer is approaching its limit. #OilFutures#Trump#NavalBlockade#StraitOfHormuz#WTI#Brent#CrudeOil#EmergencyReserves#Hyperliquid#BTC#ETH

Crypto M - Crypto News

@CryptoM · Post #65223 · 12.04.2026 г., 04:14

🚀 Sky Co-Founder Rune Faces Losses in Leveraged Oil and S&P 500 Positions Sky co-founder Rune's leveraged positions have recently experienced significant losses. According to Odaily, data from Hyperbot indicates that Rune's sevenfold leveraged short position on the Nasdaq 100 was closed 16 hours ago. Currently, he holds long positions valued at approximately $518,000, including a 20-fold leveraged long position in WTI crude oil futures and a sevenfold leveraged position in Brent oil. Additionally, Rune maintains a 20-fold leveraged short position on the S&P 500, valued at $159,000. At present, all of Rune's positions are in a loss state, with the total value dropping to around $678,000, reflecting a floating loss of approximately $61,000 and an investment return rate of -22.68%. Rune initially entered these positions last month when oil prices were rising, achieving a floating profit exceeding $1 million. However, recent fluctuations and declines in oil prices have turned these positions from profit to loss. #Sky#Rune#LeveragedTrading#OilFutures#SP500#Nasdaq100#FinancialLoss#WTICrude#BrentOil#Investing#SKY

Crypto M - Crypto News

@CryptoM · Post #64472 · 09.04.2026 г., 01:47

🚀 Unusual Oil Market Activity Precedes U.S.-Iran Ceasefire Announcement On April 9, unusual trading activity occurred in the oil market just hours before U.S. President Donald Trump announced a ceasefire agreement with Iran. According to BlockBeats, at 19:45 GMT on Tuesday, investors unexpectedly sold 8,600 lots of Brent and U.S. oil futures during a non-active trading period, amounting to approximately $950 million. Less than three hours later, Trump officially announced a two-week ceasefire with Iran. This news caused oil futures to plummet by about 15% at Wednesday's opening, falling below the $100 mark. The strategic short positions resulted in significant profits within hours. This incident is not isolated; on March 23, similar unusual trading occurred 15 minutes before Trump announced a delay in striking Iranian energy facilities, leading to a 15% drop in oil prices. Since the escalation of U.S.-Iran tensions, daily oil trading volumes have doubled to millions of lots. Congressman Ritchie Torres has formally requested the SEC and CFTC to investigate these "suspicious" trades. Torres emphasized the need to examine the accounts involved due to the trades' speed, scale, and structure. Currently, CME and SEC have declined to comment, while CFTC previously stated it is "monitoring" market anomalies. #OilMarket#USIran#Ceasefire#TradingAnomalies#OilFutures#MarketManipulation#SEC#CFTC#BrentCrude#EnergyNews