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

Резултати

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

Пребарај: #financialloss

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

@CryptoM · Post #65408 · 13.04.2026 г., 05:35

🚀 Whale Investor Faces Losses on Iran Regime Prediction A significant investor, identified by the address 0xa7d1...b824, has incurred a loss of $345,000 after investing $527,000 in a prediction that the Iranian regime would collapse by June 30. According to Odaily, this investor previously placed $176,000 on a prediction that the U.S. military would invade Iran by March 31 and $148,000 on the regime's collapse by the same date, both of which did not materialize. The market's criteria for a 'yes' outcome are stringent, requiring the dissolution, paralysis, or replacement of Iran's current governing system, including the Supreme Leader's office, the Guardian Council, and the Revolutionary Guards led by clergy, by June 30, 2026. This must be confirmed by a consensus among recognized authoritative media, indicating the regime has lost control over the majority of the population. The rules specify that regular political elections, internal reforms, or power transitions do not meet the criteria. Even an internal coup retaining the core structure of the Islamic Republic would result in a 'no' settlement. Additionally, the loss of some territory or challenges from anti-government forces would not constitute a 'collapse' unless it prevents the regime from governing the majority of the population. #Investment#Iran#RegimeChange#PredictionMarket#FinancialLoss#Cryptocurrency#Politics

Crypto M - Crypto News

@CryptoM · Post #64796 · 10.04.2026 г., 00:16

🚀 AI TRENDS | SpaceX Reports Nearly $5 Billion Loss Due to AI-Related Expenses SpaceX reported a significant financial loss last year, amounting to nearly $5 billion, primarily due to expenditures related to artificial intelligence. According to Jin10, the company's investment in AI technologies contributed substantially to this deficit. The report highlights the growing financial impact of AI development on major corporations, as they increasingly allocate resources to advance their technological capabilities. This trend underscores the importance of AI in shaping the future of industries, despite the immediate financial challenges it may pose. #AI#SpaceX#FinancialLoss#ArtificialIntelligence#TechInvestment#IndustryTrends#CorporateFinance

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 #64904 · 10.04.2026 г., 08:33

🚀 Philip Hammond Steps Down as Copper Chairman Amid U.S. Expansion Former UK Chancellor Philip Hammond has stepped down as chairman of the cryptocurrency custody firm Copper. According to Foresight News, he is succeeded by Mike Kuehnel, the former CEO of Flow Traders. This leadership change comes as Copper shifts its focus to the U.S. market and explores regulatory approval there, alongside preliminary discussions for a potential IPO. After failing to secure UK registration in December 2024, Copper obtained a Swiss license. The company's latest financial report reveals a $40 million loss in its UK operations. Additionally, former BNY executive John Meserve will join the board as a non-executive director. #PhilipHammond#Copper#Cryptocurrency#LeadershipChange#USExpansion#IPO#SwissLicense#FinancialLoss#BNY#MikeKuehnel#BNB