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

Пребарај: #fairness

当前筛选 #fairness清除筛选
Green University CA | Official

@centralasian_greenuniversity · Post #492 · 05.12.2025 г., 12:42

Green University Marks International Anti-Corruption Day 💬As part of December 9 — International Anti-Corruption Day, Green University conducted a survey among students and stuff to understand their perspectives on key issues. #GreenUniversity#AntiCorruptionDay#Integrity#Transparency#Fairness#TogetherAgainstCorruption ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube

Crypto M - Crypto News

@CryptoM · Post #64865 · 10.04.2026 г., 05:17

🚀 xAI Files Lawsuit to Block Colorado's Senate Bill 24-205 xAI has initiated legal action against the state of Colorado, filing a lawsuit in a U.S. district court on Thursday. According to NS3.AI, the company aims to prevent the enforcement of Senate Bill 24-205, which is set to take effect on June 30. xAI argues that the legislation would necessitate alterations to its Grok platform and impose requirements related to fairness and equity. #xAI#Colorado#SenateBill24205#Lawsuit#AIRegulation#Grok#TechLaw#Fairness#Equity