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

Пребарај: #transactionfees

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

@CryptoM · Post #65006 · 10.04.2026 г., 13:37

🚀 Bitcoin Transaction Fees Drop Significantly Over the Year Daily Bitcoin transaction fees have decreased to 2.443 BTC as of April 8, marking a 69% decline compared to the same period last year. According to NS3.AI, the average fee per block was approximately $0.33, with fees comprising less than 0.5% of the total miner revenue. #Bitcoin#Cryptocurrency#TransactionFees#Blockchain#CryptoNews#BTC

Crypto M - Crypto News

@CryptoM · Post #65345 · 13.04.2026 г., 01:44

🚀 Ethereum Layer 2 Network Scroll Faces Overcharging Issue Ethereum Layer 2 network Scroll has reportedly overcharged users by more than $50,000 in transaction fees over approximately four days. According to ChainCatcher, this occurred after the Scroll team manually increased two rate multipliers in their gas price oracle six times within six days, each time raising them by 2 to 10 times. This adjustment cumulatively increased the L1 data cost parameter to 1,280 times its original benchmark. Approximately 139,000 transactions were affected, with the total cost originally estimated at around $280, but users were charged over $50,000. The majority of these transactions were automated by bots. L2BEAT clarified that the overcharging was not due to a sequencer issue but resulted from multiplier adjustments executed through a multi-signature wallet by the team. This incident has raised questions about whether Scroll previously subsidized users with below-cost rates to maintain activity. Data from DeFiLlama indicates that Scroll's total value locked (TVL) currently stands at $24 million, a significant decline of 96% from its peak of $585 million in October 2024. As of the time of reporting, Scroll has not publicly responded to the issue. #Ethereum#Layer2#Scroll#Overcharging#GasFees#Blockchain#DeFi#TVL#CryptoNews#TransactionFees#ETH#SCR

Crypto M - Crypto News

@CryptoM · Post #65082 · 10.04.2026 г., 20:38

🚀 Scroll Users Face Excessive Transaction Fees Due to Multiplier Increases Scroll users incurred over $50,000 in additional transaction fees following six manual multiplier increases that elevated Layer 1 data charges to 1,280 times the original baseline. According to NS3.AI, L2BEAT reported that approximately 139,000 transactions were impacted over a span of roughly four days, with the baseline cost estimated at around $280. On April 9, the team reduced both multipliers by 160 times. Etherfi Cash bots contributed approximately $35,000 of the excess fees during etherfi's migration to Optimism. #Scroll#TransactionFees#MultiplierIncrease#Layer1#L2BEAT#NS3AI#Etherfi#Optimism#Crypto#Blockchain#SCR

Crypto M - Crypto News

@CryptoM · Post #64625 · 09.04.2026 г., 11:54

🚀 Independent Miner Achieves Rare Bitcoin Block Discovery An independent Bitcoin miner achieved a rare feat by successfully mining a Bitcoin block with a very low probability. According to BlockBeats, the miner used CKpool's solo mining software to mine block number 944,306, earning a total of 3.128 Bitcoin. Data from block explorer Mempool indicates that the miner received a block subsidy of 3.125 Bitcoin and transaction fees amounting to 0.003 Bitcoin. CKpool developer Con Kolivas noted on the X platform that the miner accomplished this with just 70TH of computing power. The probability of a miner of this scale discovering a block daily is approximately one in 100,000, with an average occurrence of once every 300 years. #Bitcoin#mining#CKpool#blockchain#rarefeat#blockdiscovery#cryptocurrency#soloMining#Mempool#transactionfees#ConKolivas#BTC

Crypto M - Crypto News

@CryptoM · Post #64697 · 09.04.2026 г., 14:44

🚀 Telegram's TON Blockchain Achieves Significant Speed Upgrade Telegram founder Pavel Durov announced a major upgrade to the TON blockchain, significantly enhancing its processing speed. According to Foresight News, the upgrade has increased block generation rates by six times and achieved sub-second transaction confirmations. Durov stated that this is the first of seven steps in his 'Make TON Great Again' (MTONGA) plan. The next step aims to reduce the already relatively low transaction fees by approximately six times to further improve network performance and cost competitiveness. #Telegram#TONBlockchain#PavelDurov#SpeedUpgrade#Blockchain#TransactionSpeed#MTONGA#ForesightNews#SubSecondConfirmations#TransactionFees#NetworkPerformance