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

Пребарај: #modularity

当前筛选 #modularity清除筛选

Flexibility has become more important to people today than sheer size. With the design for Van B UnStudio introduce new ways to make the footprint of an apartment more flexible — challenging old conventions of square footage and fixed footprints. The architectural strategy was to devise as many different ways as possible to reconfigure an apartment. To achieve this, architects designed a ‘plugin-based’ system that allows homeowners to use the space in a 40m2 apartment almost as if it were a 60m2 loft. This allows you to easily change the use of the same floor space in a matter of seconds, making it possible to transform a room from a generous office into a cozy living room, or a bedroom. Renders: Bauwerk / bloomimages #unstudio#housing#modularhousing#modularity#flexibility#inclusivedesign#germandesgin#sustainability#greenarchitecture#arch_shovel

Venture Village Wall 🦄

@venturevillagewall · Post #3749 · 30.12.2024 г., 04:00

Best & Worst Crypto Narratives Revealed In the last month, AI Agents topped the charts with a 67.02% return, while CEX coins gained 42.61%. On the downside, Modularity fell by 30.99%, Memecoins dropped 28.41%, and LRT decreased by 27.74%. Read more here. ✨ Additionally, Hong Kong lawmakers are considering including Bitcoin in fiscal reserves, aiming to stimulate the crypto industry and boost tax revenue. More details can be found here. #AI#Crypto#CEX#Bitcoin#Investment#FiscalPolicy#CryptocurrencyIndustry#HongKong#Finance#TaxRevenue#MarketAnalysis#Returns#LawPolicy#AIAgents#Modularity#Memecoins#CryptoTrends#Innovation#Funds#TalentAttraction