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

Пребарај: #aid

当前筛选 #aid清除筛选
Red Nile

@rednile12 · Post #11264 · 15.03.2026 г., 14:09

🇵🇸Newly released footage shared by a British recruit who served at aid distribution sites run by the #Gaza Humanitarian Foundation exposes the aid system designed by Israel in cooperation with the United States to humiliate Palestinians. Nearly 2,000 Palestinians were killed at the foundation’s distribution points in incidents that included shooting “for fun,” according to the recruit. @EuroMedHR #Genocide#Aid#GHF#Starvation#Famine#US#Palestine

MessageInABottle

@mib_messageinabottle · Post #6796 · 16.05.2024 г., 14:15

ZioNazi*** #Israeli"settlers"evil colonists are allowed by the #ZioNazi Israeli Government to destroy desperately needed humanitarian #aid coming from #Jordan to #Gaza. These sicko “civilians” are destroying vital food aid to a #starving population, which is literally facing famine conditions which have been created by the actions of those very same #ZioNazis, and all while literally laughing about it and obviously having fun. Getting the settlers to destroy the aid is a very evil and dishonest way for the #Zionist Israeli Government to deny aid to #Gaza while pretending to the International community that they are doing all they can to allow it in. --------- *** Anyone wondering why I usually refer to Zionists as "ZioNazis" ...... ........ well, now you know why!