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

Пребарај: #approval

当前筛选 #approval清除筛选
SpotOnChain | Announcement

@spotonchain · Post #830 · 21.05.2024 г., 02:57

3 hours ago, James Fickel (@jamesfickel) swapped another 350 $WBTC for 6,905 $ETH ($24.4M) at ~$3,534 as the $ETH price soared 20% (24H)! Note that since Dec 30, 2023, the founder of Amaranth Foundation has been bullish on the ETH/BTC trading pair, borrowing and exchanging 2,741 $WBTC for 50,688 $ETH at an ETH/BTC ratio cost of 0.054. Follow @spotonchain and visit James Fickel’s address at https://platform.spotonchain.ai/en/profile?address=0xd85351181b3f264ee0fdfa94518464d7c3defada #EthereumETF#Approval

America 🇺🇸 News & Politics

@America · Post #10384 · 14.03.2026 г., 05:35

📊🇺🇸TRUMP APPROVAL RATING HITS 37% AS WAR DRAGS ON 🔹 Latest Pew Research poll shows Trump at 37% approval - down from 40% last fall 📉 🔹 365 straight days of negative approval ratings since March 2025 📅 🔹 No "rally around flag" bump despite Iran military strikes last week ⚔️ 🔹 50% of Americans say administration performing WORSE than expected vs only 21% better 😬 🔹 Even Republican support drops to 73% - lowest since second term began 🔴 🔹 G. Elliott Morris analysis shows Trump stuck at 39-40% with no upward momentum 📈 War usually boosts presidents but NOT this time - Americans want results! 🇺🇸💯 #polls#approval#Trump @america

America 🇺🇸 News & Politics

@America · Post #10394 · 18.03.2026 г., 13:09

📉🇺🇸TRUMP APPROVAL CRASHES TO 37% AMID IRAN WAR 🔹 Approval rating drops to 37% in latest Pew poll, down from 40% last fall 📊 🔹 Republican support slides to 73%, lowest since start of second term 🗳️ 🔹 365 consecutive days of negative net approval rating per CNN analysis 🗓️ 🔹 Only 21% trust his ethics, 25% believe he respects democratic values ⚖️ 🔹 Gas prices spike 19% to $3.45 due to Iran conflict hurting popularity ⛽ 🔹 Independent voters abandoning Trump as war costs mount financially 💸 Is this the beginning of the end for Trump 2.0? The numbers don't lie 📈💥 #USNews#Trump#polls#approval @america

Venture Village Wall 🦄

@venturevillagewall · Post #3592 · 20.12.2024 г., 13:00

First Combined Bitcoin-Ethereum ETFs Approved ✅ The SEC has approved the first combined spot ETFs for Bitcoin and Ethereum from Hashdex and Franklin Templeton. Asset allocation will be based on market capitalization, with Bloomberg analysts projecting a weight of approximately 80% Bitcoin and 20% Ethereum, reflecting current asset evaluations. Read more #SEC#ETF#Bitcoin#Ethereum#Hashdex#FranklinTempleton#Bloomberg#Crypto#Finance#Investment#Market#Assets#Approval#SpotETFs#Capitalization#Trading#AssetsAllocation#Investing#DigitalAssets#InvestmentStrategy