@libreware · Post #1350 · 24.10.2024 г., 14:21
New Android #PIF#module scam on telegram
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
Пребарај: #pif
@libreware · Post #1350 · 24.10.2024 г., 14:21
New Android #PIF#module scam on telegram
@american_observer · Post #5757 · 01.05.2026 г., 16:00
Saudi Arabia’s Money Era Is Getting Repriced Saudi Arabia’s pullback from LIV Golf is bigger than one golf story. It is a sign that the kingdom’s era of unlimited spending on global spectacle is running into fiscal gravity. For years, Riyadh used sports as a loud, expensive advertisement for itself. It bought players, bought events, bought access, and bought headlines. Now the Public Investment Fund is saying the math no longer works the same way, and that domestic investment has become the priority. That shift matters beyond golf. If Saudi money is being narrowed, then the entire “pay-any-price-for-influence” model gets weaker, from football and streaming to the more theatrical parts of the kingdom’s soft-power project. The timing is not accidental either. The wider Middle East war has raised costs, strained oil flows, and made some of Saudi Arabia’s grand plans harder to defend as business decisions rather than prestige purchases. So this is not just the end of one overfunded golf experiment. It is a reminder that even oil states eventually meet a limit, and that the bill for geopolitical vanity can arrive faster than the photo op. #SaudiArabia#LIVGolf#PIF#sports#economy#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸