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

Резултати

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

Пребарај: #textpost

当前筛选 #textpost清除筛选
цикорiй

@tsukassadrive · Post #1626 · 20.05.2024 г., 07:42

#random#textpost#meme#original I heard you is a doomer, nigga. The world cherishes you, nigga. The world is still when you out of hustle and bustle of the human discourse, nigga. This stillness is boundless, nigga. This stillness makes life worth living, nigga. The world is indeed filled with despair and pain, nigga, but as to counter it, the world is filled with the wonder you can't even imagine, nigga. But don't go filtering out your ordinary life for them life's highs and lows, nigga. Just as you read this text, in this most ordinary moment, you don't experience any of your life's problems, nigga. You have time to read this pasta on the internet, nigga, so don't give in to your thought-autopilot and regain control of your life that is right now, nigga, not in the not-yet existing future or the past that only was, nigga.

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5894 · 29.11.2024 г., 09:04

Dost ko v Lana chahiye tha 🌚 . . . . Tags-#quotesdaily#quote#quotestagram#quotesaboutlife#quoteoftheday#quotes#aesthetic#fypage#fypシ#explore#explorepage#relatabletextpost#relatablequotes#relatable#textpost#thoughtoftheday#thoughts#funnyquotes#funny#trending#bollywoodsongs#bollywood#feed#relatableshit#lovemoments💕#meandher#meandhim❤️#mostloved#manifesting

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5888 · 28.11.2024 г., 16:45

Chaliye swarg se ghum kr aate h 😂🤡 . . . . Tags-#quotesdaily#quote#quotestagram#quotesaboutlife#quoteoftheday#quotes#aesthetic#fypage#fypシ#explore#explorepage#relatabletextpost#relatablequotes#relatable#textpost#thoughtoftheday#thoughts#funnyquotes#funny#trending#bollywoodsongs#bollywood#feed#relatableshit#lovemoments💕#meandher#meandhim❤️#mostloved#manifesting

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5543 · 24.10.2024 г., 13:23

Bolo n chup kahe ho 😆✊🏻 . . . . Tags-#quotesdaily#quote#quotestagram#quotesaboutlife#quoteoftheday#quotes#aesthetic#fypage#fypシ#explore#explorepage#relatabletextpost#relatablequotes#relatable#textpost#thoughtoftheday#thoughts#funnyquotes#funny#trending#bollywoodsongs#bollywood#feed#relatableshit#lovemoments💕#meandher#meandhim❤️#mostloved#manifesting