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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #61 · 2 апр.

Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления. from __future__ import division Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда. Например: int/int => int int/float => float В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float. Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float. 12/float(5) => float Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//". >>> 3/2 1.5 >>> 3//2 1 То есть теперь деление int на int даёт float если результат не целое число. В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами. Данный переход описан в PEP238. #pep#2to3#basic

Резултати

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

Пребарај: #protocolupgrade

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

@CryptoM · Post #64538 · 09.04.2026 г., 06:45

🚀 Satoshi Protocol Layer2 Settlement Network Launches with Upgrades The Satoshi Protocol Layer2 settlement network officially launched on April 6, introducing enhancements in on-chain data statistics and computational capabilities. According to ChainCatcher, the Layer2 network now supports deep cumulative calculations on-chain, allowing for a more accurate reflection of team sizes and business data, thereby improving processing efficiency in complex scenarios. In terms of governance, the protocol has transferred core permissions to a multi-signature contract and adopted a dual-track governance model, with developers and core community members each holding 50% of the decision-making power. The execution threshold is set at 65%, further enhancing decentralization. This upgrade marks the protocol's transition towards community autonomy, providing a reference for technology and governance in the DeFi sector. #SatoshiProtocol#Layer2#Blockchain#DeFi#Governance#Decentralization#OnChainData#NetworkLaunch#Crypto#MultiSignature#ProtocolUpgrade#CommunityAutonomy

Venture Village Wall 🦄

@venturevillagewall · Post #4237 · 25.02.2025 г., 07:00

Musk's Grok AI Updates Amid Market Drop 🔍 Elon Musk's Grok AI upgraded to version 3, enabling advanced reasoning like OpenAI's o3. New feature, DeepResearch, assists in detailed research. Performance varies: good for research tasks, but average in text generation compared to Claude. 📉 Meanwhile, Bitcoin falls to key support at $91,000, dragging down Ethereum below $2500 and Solana under $140. Liquidation volumes exceed $880 million. Chainflip to enhance protocol to block Bybit hacker fund movements within 24-72 hours. For further details, check here. #Grok#AI#Crypto#Bitcoin#Ethereum#Solana#DeepResearch#Chainflip#Bybit#hacker#liquidations#marketupdate#protocolupgrade#ElonMusk#Claude#OpenAI#DeepSeek#cryptonews#fintech#blockchain