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

Резултати

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

Пребарај: #giggleacademy

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

@CryptoM · Post #64453 · 09.04.2026 г., 00:55

🚀 CZ to Donate All Proceeds From Freedom of Money to Nonprofits, Keeps Nothing From Book Sales Speaking on The Wolf of All Streets Podcast, Binance co-founder Changpeng Zhao (CZ) said he is donating the entirety of proceeds from his memoir Freedom of Money to nonprofit organizations, retaining nothing from book sales. Priced at $9.99 on Amazon, CZ said he originally considered releasing the book as a free PDF but concluded that selling through Amazon and donating proceeds to charitable causes would be more impactful; the Amazon distribution model also enables physical copies. CZ said his post-prison focus includes advising country leaders on crypto regulatory frameworks — noting that all his personal assets are held in crypto, aligning his interests with the broader industry. He also cited Giggle Academy, his nonprofit education platform, as a source of personal satisfaction: the platform is reaching 240,000 students at no cost, operated by a team of approximately 50 people over roughly one and a half to two years. #Binance#CZ#Crypto#Charity#Nonprofit#BookDonation#FreedomOfMoney#Education#GiggleAcademy#Philanthropy#BNB