@TestFlightX · Post #34253 · 04.10.2024 г., 13:17
#HEY#HALCYON https://testflight.apple.com/join/ZhRtgYdc
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #214 · 12 фев.
Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs
Пребарај: #halcyon
@TestFlightX · Post #34253 · 04.10.2024 г., 13:17
#HEY#HALCYON https://testflight.apple.com/join/ZhRtgYdc
@NothingPhone2Updates · Post #454 · 20.10.2024 г., 18:42
Halcyon - OFFICIAL| A14 | Nothing Phone (2) 📔 Details: - Version: 14.3 Ursinia - Codename: #Pong - Released: 20/10/2024 🔽 Download (Recovery) : Gapps ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#Halcyon#Official#AOSP#QPR3#U#NothingPhone2 ✍️ Changelogs: - Oct Security Patch - Minor Fixes ✍️ Note: - Near to stock.. So Check Screenshots for features available - GKI Kernel 🏆 Credits - Chandu for base device tree & Kernel - OC'D,Miki,Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Zap for testing 😎 Maintainers: @AgBKartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2
@NothingPhone2Updates · Post #430 · 12.09.2024 г., 14:07
Halcyon - OFFICIAL| A14 | Nothing Phone (2) 📔 Details: - Version: 14.3 Ursinia - Codename: #Pong - Released: 12/09/2024 🔽 Download (Recovery) : Gapps ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#Halcyon#Official#AOSP#QPR3#U#NothingPhone2 ✍️ Changelogs: - Initial Official Build ✍️ Note: - Near to stock.. So Check Screenshots for features available - GKI Kernel 🏆 Credits - Chandu for base device tree & Kernel - OC'D,Miki,Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Testers 😎 Maintainers: @AgBKartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2