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

Пребарај: #wednesdayfrog

当前筛选 #wednesdayfrog清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40818 · 18.03.2026 г., 11:01

Glass frogs are small tree frogs that live in tropical forests in Central and South America. Some species have transparent bellies, so their heart and organs can be seen through the skin. This helps them hide from predators. Most glass frogs are light green and live on leaves near streams. They use sticky toe pads to climb and stay on surfaces. There are about 160 species of glass frogs. 🐸🌿🌎. [Read more 1] [Read more 2] @googlefactss #Animals#Nature#DidYouKnow#Wildlife#Science#WednesdayFrog

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40855 · 24.03.2026 г., 23:01

Boreal chorus frogs can make their loud, high-pitched “reeeek” calls underwater, which is rare among frogs. They are small frogs found in Canada and the northern United States, usually growing to about 3 centimeters long. Their bodies are brown, tan, or green, and they often have three dark stripes running down the back and a dark line through each eye. They live near ponds, marshes, and wetlands. Males call in groups to attract mates and warn other males. Calls are most common during the spring breeding season. 🐸🌿🌊 [Read more 1] [Read more 2] @googlefactss #Animals#Nature#Frogs#Wildlife#DidYouKnow#Communication#wednesdayfrog