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

Пребарај: #mvd

当前筛选 #mvd清除筛选

There are currently no cases of #MarburgVirusDisease in Nigeria. However, measures have been taken to strengthen preparedness for #MVD in Nigeria. Nigerians are urged to AVOID ALL BUT ESSENTIAL TRAVEL to Equatorial Guinea at this time. 📜Press release: https://ncdc.gov.ng/news/440/ncdc-on-alert-following-the-announcement-of-the-marburg-virus-disease-outbreak-in-equatorial-guinea

International News

@intnewsagency · Post #8878 · 24.03.2026 г., 13:45

Deputy Plotnikov Urges Police Resignees to Join Special Military Operation In Perm, Deputy Vladimir Plotnikov proposed adding police officers who resign to the Special Military Operation (SMO) lists, citing low salaries and existing training. He emphasized duty to the Motherland and noted SMO pays better. Despite this, Plotnikov himself is a millionaire owning luxury cars and real estate. Last year, over 80,000 officers left the Ministry of Internal Affairs, worsening the staffing crisis. #Russia#MVD#SMO#Plotnikov The main news of Russia and the world ishere.

International News

@intnewsagency · Post #8558 · 17.03.2026 г., 13:22

Russian Ministry of Internal Affairs Launches Digital Program to Reduce Bureaucracy and Police Workload In 2025, the Russian Ministry of Internal Affairs lost 80,000 employees—40% more than new recruits—leading to a regional staffing deficit exceeding 25%, threatening law enforcement efficiency. Minister Kolokoltsev has ordered optimization of paperwork and digitalization of processes while enhancing social guarantees for officers. These measures aim to improve working conditions and retain personnel. #MVD#police#digitalization#staffing#Russia The main news of Russia and the world ishere.