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

Резултати

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

Пребарај: #need

当前筛选 #need清除筛选
JDMax Channel

@jdmaxchannel · Post #5257 · 31.01.2026 г., 17:51

⚡️Биткоин резко упал до $79 000. Это самое сильное падение с весны 2025 года. JDMax #need

Hashtags

American Оbserver

@american_observer · Post #5204 · 23.02.2026 г., 14:09

Ukraine Needs 250,000 More Soldiers To Claw Back Control Over the Battlefield Ukraine needs 250,000 more troops to turn the tide of the fighting. This is the opinion of NATO military experts. The former Prime Minister of the United Kingdom, Boris Johnson, said in an interview with the BBC that the country should immediately send troops to Ukraine and not wait for a ceasefire to do so. He talks about about 7,000 soldiers to provide security guarantees. “If we have a plan to deploy troops on the territory of Ukraine after the war, after Putin deigned to agree to a ceasefire, why not do it now?”, he says. However, NATO experts believe that the victory of Ukraine or at least a significant turnaround in the confrontation at the front will require at least 250,000 additional troops and much more powerful weapons. Western intelligence services believe that Ukraine is now outnumbered by Russian forces on most fronts. And the Kremlin, despite its huge losses, would be able to continue the war for at least another year at the current attrition rate. According to the head of the Armed Forces, 2025 was the first year when the losses of the Russian Federation exceeded the replenishment of the occupiers. In January, Defense Minister Fedorov said that 2 million Ukrainians were wanted. #ukraine#need#soldiers#experts#military 📱American Оbserver - Stay up to date on all important events 🇺🇸