Ранее я уже упоминал о другой фишке из ˍˍ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
#Re#Timeline
模块:nep.timeline.re_telegram
简介:Re Telegram
版本:170-Akiyama
更新时间:2024/12/09 15:29:52
更新日志:
Now you can delete your messages normally without having to delete them multiple times
@lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot
📄Timeline, a place where you can see all the messages from all subscribed channels.
❤️Redesigned In version 11.10.0 on June 20, 2024.
🗓Was added in version 5.0 on August 19, 2016.
#features#message#timeline#feed
#graph_messenger#telegram
@GraphMessenger
@GraphMessengerTips
#go#archival#data_archiving#data_import#family_history#self_hosted#timeline
Timelinize helps you organize your personal data from different sources like photos, messages, and social media into a single timeline on your computer. This keeps your data private and under your control, unlike cloud services. You can import data from many places, view it on a map, and see conversations across different platforms. It's like having a personal journal that you can add to and keep forever, without relying on companies to store it for you. This way, you can keep your memories safe and easily look back at them whenever you want.
https://github.com/timelinize/timelinize
After this reset, you will begin the New Earth timeline with new belief systems will guide you. But that is in the future.
For today, create boundaries with both the past and the future so you can simply be in this here and now moment.
The past no longer defines you. The future is what you decide upon.
Yah bless 🌹 Love Carolyn
✨ Get your FREE Quantum Energy Balancing & Tune-up https://www.144godcode.com/freebie
#timeline#newearth#reset#rebirth#therealyou #144000 #144GODCODE#APTTMH