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

Пребарај: #eventcontracts

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

@CryptoM · Post #65083 · 10.04.2026 г., 21:25

🚀 Kalshi Users Engage in Event Contracts on NASA's Artemis II Mission Kalshi users have been actively trading event contracts related to NASA's Artemis II mission, with trading volume reaching just over $4,000 as of Friday. According to NS3.AI, these contracts speculate on potential statements from NASA officials following the Artemis II splashdown. Additionally, Kalshi has listed contracts suggesting a 63% probability of a NASA manned Moon landing occurring before 2030, and a 41% chance of it happening before 2029. #Kalshi#NASA#ArtemisII#EventContracts#MoonLanding#SpaceExploration#Trading#NS3AI

Crypto M - Crypto News

@CryptoM · Post #64689 · 09.04.2026 г., 14:08

🚀 DOJ and CFTC Seek to Block Arizona's Action Against Kalshi The U.S. Department of Justice (DOJ) and the Commodity Futures Trading Commission (CFTC) have filed a motion in federal court to halt Arizona's criminal and civil enforcement actions against Kalshi. According to NS3.AI, the agencies contend that event contracts regulated by the CFTC are beyond the jurisdiction of state authorities and are governed by federal commodity law. #DOJ#CFTC#Kalshi#Arizona#eventcontracts#commoditylaw#federalcourt#statejurisdiction