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

Пребарај: #hexagon

当前筛选 #hexagon清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #18 · 29.07.2025 г., 21:51

🪐 High above the north pole of Saturn, the storm known as the "Hexagon" forms a perfect six-sided jet stream wider than two Earths across. Unlike any weather pattern on Earth, this mysterious geometric cloud system has maintained its shape for decades, swirling in icy isolation since first observed by Voyager and later by the Cassini spacecraft. ✨ #Saturn⚡#Hexagon⚡#atmosphere 👉subscribe Universe Mysteries

Addis Standard

@addisstandardeng · Post #21524 · 25.02.2026 г., 14:17

Will #Ethiopia be part of #Israel’s ‘hexagon’ alliance rivalling its enemies? Days after Israeli Prime Minister Benjamin #Netanyahu proposed forging a network of allied nations, including in the #Middle_East and #Africa, to stand against what he called “radical” adversaries, the country’s president is on an official visit to key ally, Ethiopia. It is not yet known which Arab and African countries will form part of Netanyahu’s hypothetical “#hexagon of alliances”, which he said on Sunday will include Israel, #India, #Greece, #Cyprus and others to stand against their enemies in the Middle East. Chief among those enemies is presumably #Iran and its network of resistance groups from #Hezbollah in #Lebanon to the #Houthis of #Yemen. Analysts doubt Israel could secure enough influence over nation-states to form a formal security pact. However, the country is deepening its ongoing charm.... https://web.facebook.com/AddisstandardEng/posts/pfbid02k6zhD7KwutXLnqV8A3PNCvX8aTQCduGEjMQcKEZKazJ7iuCCDwJdgwAZFULz2cMwl