TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #273 · 26 јул.

В стандартном модуле random есть две очень похожие функции random.randint() random.randrange() Обе возвращают случайное значение из указанного диапазона >>> random.randint(10, 20) 12 >>> random.randrange(10, 20) 17 В чем же отличие? Дело в том что у randrange() есть третий параметр step. randint() действительно возвращает случайное число из указанного диапазона. randrange() на первый взгляд делает тоже самое если передать также два параметра. Но есть указать еще и step то наш диапазон усложняется, то есть в него попадёт не полный ряд значений. Например, я хочу получить случайное значение из диапазона но только чётное число. Тогда достаточно сделать так: >>> randrange(10, 20, 2) 16 Таким образом получается что randint это частный случай randrange без указания параметра step. Еще одно важное отличие в том, что randint() включает в диапазон второе значение а randrange() нет. То есть выражение randrange(10, 20) никогда не вернёт 20, а randint(10, 20) вернёт. #tricks#basic

Резултати

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

Пребарај: #catchain2

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

@CryptoM · Post #64742 · 09.04.2026 г., 17:17

🚀 TON's Catchain 2.0 Upgrade Enhances Speed and Validator Rewards TON has announced the implementation of its Catchain 2.0 consensus upgrade, which significantly improves transaction speed and validator incentives. According to NS3.AI, the upgrade reduces block times to 400 milliseconds and accelerates payment settlement to approximately one second. Additionally, the change is expected to increase annual inflation to 3.6%, up from around 0.6%, as the faster block production boosts rewards for validators. #TON#Catchain2.0 #Blockchain#ConsensusUpgrade#TransactionSpeed#ValidatorRewards#Cryptocurrency#CryptoNews#BlockchainTechnology#DeFi

Crypto M - Crypto News

@CryptoM · Post #64902 · 10.04.2026 г., 08:17

🚀 TON Declines Over 24% Year-to-Date Despite Wallet Accumulation and Network Upgrade TON has experienced a decline of over 24% since the beginning of the year. According to NS3.AI, despite this downturn, the top 100 wallets have accumulated an additional 189,730 TON in the past three months. This week, TON implemented the Catchain 2.0 upgrade, which has reduced confirmation times to less than one second for Telegram mini-apps, payments, and high-frequency activities. The network's seven-phase roadmap includes plans for future fee reductions. #TON#cryptocurrency#blockchain#wallets#networkupgrade#Catchain2#Telegram#cryptoaccumulation#feereduction#highfrequencytransactions