Ранее я уже упоминал о другой фишке из ˍˍ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
Volcarona - AGC Config | Nothing Phone 2 (Pong)
✍️ Details:
- Supports AGC 8.4 & 9.2
- Config can be downloaded from AGC Toolkit or Telegram
⬇️ GCAM: 8.4 | 9.2
⬇️ Toolkit Link for the Config : ToolKit
📮 Original Post: Here
📝 Changelogs:
* Initial Release for pong
⚙️ Installation
8.4
1. Copy the config inside Download/AGC.8.4/configs (create folder if it doesn't exist)
2. Open GCam then swipe down to open the top menu
3. Click on "Load Configs" > select the config > load
9.2
1. Copy the config inside Download/AGC.9.2/configs (create folder if it doesn't exist)
2. Open GCam then click on the profile icon on the app right
3. Click on "Load Configs" > select the config > load
⚠️ Notes
- Use lite configs if the profiles list does not load all the profiles in regular version
👨💻 Adapted by: @Abdulhubbali
🌐 Discussion: @NothingPhone2Photography
🔖 Tags: #agc#gcam#config
LM.CCD config adapted for OnePlus 13
⬇️ Download Gcam App (pick aweme variant)
What's Working :
Main, Telephoto, Selfie, UW, Night Sight, Portrait, Videography (4k 60fps + Stabilization)
Changelogs :
• Based on LM.CCD_v3_Sabre config by LaoMa
• Upscaling is enabled by default for Selfie Camera
• Removed extra profiles (which i felt useless)
• Miscellaneous small tweaks done by me.
XML (.agc) Save Directory: /Download/AGC 9.2/configs
All credit goes to the original creator of the config.
#gcam#xml#agc
👤 Adapted by: @pulkittg
🔔 Updates: @OnePlus13Series
💬 Discussion: @OnePlus13SeriesChatRoom
#抽奖预告
#AGC - Video Player
#播放器#emby#jellyfin
AGC - Video Player是一款由 Zetao Yang 开发的媒体播放器应用,可在 Mac App Store 上获取。这款应用旨在通过自定义小组件、高级流媒体功能以及无缝的隔空播放和字幕支持来提升媒体体验。
主要功能包括:
* 自定义小组件: 提供个性化体验。
* AI 驱动的媒体库管理: 组织视频文件并抓取元数据。
* 多视频格式支持: 支持多种视频格式,并支持杜比® 和 DTS 音频。
* 直接流媒体播放: 可直接从其他设备和云服务进行流媒体播放。
安排时间抽两个iOS终身版 一个安卓端终身版
Tips:先下载 再激活
Apple Store下载地址:https://agcplayer.com/?inviteid=236514