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

Пребарај: #autostocks

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

@CryptoM · Post #64523 · 09.04.2026 г., 06:03

🚀 STOCKS | Hong Kong Auto Stocks Decline in Afternoon Trading Hong Kong's auto stocks experienced a downturn in afternoon trading. According to Jin10, XPeng Inc. (09868.HK) saw a decline of over 5%, while BYD Company Limited (01211.HK) dropped more than 4%. Other companies such as Seres Group (09927.HK) and Li Auto Inc. (02015.HK) also followed the downward trend. #HongKong#AutoStocks#XPeng#BYD#SeresGroup#LiAuto#StockMarket

Crypto M - Crypto News

@CryptoM · Post #64479 · 09.04.2026 г., 02:07

🚀 STOCKS | Hong Kong Auto Stocks Surge with Geely and Chery Leading Gains Hong Kong's automotive stocks have shown significant strength, with notable gains observed in several key companies. According to Jin10, Geely Automobile Holdings Limited (00175.HK) and Chery Automobile Co., Ltd. (09973.HK) both experienced increases of over 4%. Additionally, NIO Inc. - SW (09866.HK) saw a rise of more than 3%, while Leapmotor (09863.HK) also followed the upward trend. This surge reflects a positive sentiment in the Hong Kong auto market, driven by investor confidence and market dynamics. #HongKong#AutoStocks#Geely#Chery#NIO#Leapmotor#Automotive#StockMarket#InvestorSentiment