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

Резултати

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

Пребарај: #wong

当前筛选 #wong清除筛选
Pensive|

@PensivePost · Post #5072 · 04.04.2021 г., 12:28

You are, Fence of seduction, Till I vent all my senses veins pump as it tenses. Essence of a gentle, love is moment less. Time's not a crisis if we did it like we meant this. Don't regret me as I fill me in your soul. I wish to be your's, and not to be Yet, another expenses. #wong#review

Hashtags

Pensive|

@PensivePost · Post #5070 · 04.04.2021 г., 09:59

I have an odd impulse, of losing myself in the crowd. I believed that's how I found myself, but then I realised. I just wanted to be found. Beyond lust and pleasures, I have a jubilant admiration, for this weird ripple of sensitivities, that can only be triggered by people so rare. It's almost angelic. In a world that survives on each other, It's only a miracle how I live on my own. Comprehending pain from people, Discerning despair. I was just correlating. To what it made me, And what you've become. I guess, Its been a trial to see how to be the man, that I pretend to be. #wong#review#newuser