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

Резултати

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

Пребарај: #love

当前筛选 #love清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #11894 · 13.03.2026 г., 01:04

#Love A touching moment that reminds us about compassion. A mother crab was playing peacefully with her little baby near the water when suddenly a man grabbed the tiny crab from her claws. In desperation, the mother stayed nearby as if begging him to return her child. And when he finally did, she immediately pulled the baby close, holding it tightly as if afraid to lose it again. Even crabs have love for their children. Love does not depend on species, language, or size. Sometimes animals remind us of the simplest truth: every living being deserves care, respect, and the chance to live in peace. 🦀❤️☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

Hashtags

Inspiring Thoughts

@Inspiringthoughts · Post #10473 · 08.02.2025 г., 10:38

When we feel #love and kindness toward others, it not only makes others feel loved and cared for, but it helps us also to develop inner happiness and peace. The practice of compassion and kindness is what brings us true happiness, both for ourselves and for those around us. -Dalai Lama 🌼💫❣

Hashtags

123•••5•••10•••15•••20•••25•••30•••35•••40•••45•••50•••55•••60•••6465
ПретходнаСтраница 1 од 65Следна