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

Резултати

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

Пребарај: #cryptoindex

当前筛选 #cryptoindex清除筛选

🤣以太區塊鏈新聞 #恐懼貪婪指數 🚨【 #FearandGreed 回升:市場情緒略有修復】🌚加密貨幣恐懼與貪婪指數自昨日的 24(極度恐懼) 回升至 38(恐懼)情緒出現初步修復跡象 #FearnGreed#市場情緒#CryptoIndex

Crypto M - Crypto News

@CryptoM · Post #65098 · 11.04.2026 г., 00:52

🚀 Altcoin Season Index Remains Steady at 35 CoinMarketCap's Altcoin Season Index has maintained its position at 35, unchanged from the previous day. According to NS3.AI, this index measures the performance of leading cryptocurrencies compared to Bitcoin over the past 90 days. #Altcoin#Crypto#Bitcoin#CoinMarketCap#Cryptocurrency#AltcoinSeason#NS3AI#CryptoIndex#CryptoNews#BTC

Crypto M - Crypto News

@CryptoM · Post #64469 · 09.04.2026 г., 01:45

🚀 Altcoin Season Index Remains Steady at 34 CoinMarketCap's Altcoin Season Index has remained at 34, showing no change from the previous day. According to NS3.AI, this index evaluates the 90-day performance of the top 100 cryptocurrencies, excluding stablecoins and wrapped tokens, in comparison to Bitcoin. #AltcoinSeason#Cryptocurrency#CryptoMarket#Bitcoin#Altcoins#CoinMarketCap#CryptoIndex#NS3AI#BTC

Crypto M - Crypto News

@CryptoM · Post #65000 · 10.04.2026 г., 13:19

🚀 CoinDesk 20 Experiences Slight Decline Amid Mixed Asset Performance The CoinDesk 20 index recorded a minor decrease, trading at 2,007.93, reflecting a 0.2% drop or a decline of 3.4 points from the previous day's close. According to NS3.AI, individual asset performances varied, with HBAR experiencing a 1.9% decline and ADA falling by 1.3%. In contrast, AVAX saw a rise of 0.6%, while BTC increased by 0.3%. #CoinDesk20#CryptoMarket#HBAR#ADA#AVAX#BTC#CryptoIndex#AssetPerformance

Crypto M - Crypto News

@CryptoM · Post #64668 · 09.04.2026 г., 13:18

🚀 CoinDesk 20 Experiences Slight Decline as ICP Leads Gains The CoinDesk 20 index recorded a slight decrease, trading at 1,982.06, marking a 0.6% drop since 4 p.m. ET on Wednesday. According to NS3.AI, Bitcoin remained stable during this period. Internet Computer Protocol (ICP) emerged as the leading gainer with a 1.5% increase, while AAVE and Stellar (XLM) were among the assets experiencing declines. #CoinDesk20#ICP#Bitcoin#AAVE#Stellar#Cryptocurrency#MarketDecline#CryptoIndex#BTC