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

Резултати

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

Пребарај: #iloveyou

当前筛选 #iloveyou清除筛选
Niva

@heyniva · Post #6738 · 12.06.2025 г., 07:40

Episode 1: She’s in his hoodie, sitting cross-legged on the kitchen counter while he flips pancakes. Music plays low, something nostalgic. She sways, miming the lyrics with lazy exaggeration. He grins—half amusement, half adoration. There’s no rush. No plan. Just the rhythm of a morning made soft by love. ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ We keep finding heaven in the smallest things. ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ #lovelived#iloveyou

Мирослава Карпович

@m1r0slavakarpovich · Post #449 · 03.09.2022 г., 05:58

#доброеутро Нежность Сэлинджера+эмоциональность Гао Синцзяня+внешние данные Гун Ли+современность Вирджинии Депант=Миан Миан Конфетка By Les Créatuers : Photo @konstantin.rivera MUAH @richy_yuliana Style @olgasheremeta After all my performances ,I jumped on a plane and spent the next two weeks diving into few projects that gripped me.I’m looking forward to sharing more about the process ,and the wonderful humans I shared these experiences with plane .Still traveling ,reflecting,cataloging all that I am appreciative of.Longest I’ve been road bound for some time,reaping all the rewards .Sweet discovery .More to come..🫶🏻 #hooponopono#thankyou#iloveyou#mylilmuse#tika#blackandwhite#photooftheday#photography#moodoftheday#heavenonearth#hippie#green#travelling#muse#petitefemme#mira#purelove#haveaniceday#sunvibes Обняла!😁🙏🏻