TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #239 · 3 мај

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

Пронајдени 18 слични објави

Пребарај: #los

当前筛选 #los清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #493 · 21.12.2024 г., 05:55

LineageOS - Community | Android 15 | Nothing Phone (2) ✍️ Details: - Version: lineage 22.1 - Codename: #Pong - Released: 11/12/24 🔽 Download: Recovery build 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#LOS#V#Community ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - Vanilla build: Recommended Gapps 🏆 Credits - Chandu for base DT - Hellboy for Meteoric kernel - Fabian and Hellboy for PA Glyph Implementation - Testers: @Devasee@notnaito 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #461 · 26.10.2024 г., 09:09

LineageOS - Community | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 22.0 - Codename: #Pong - Released: 26/10/24 🔽 Download: [ Here ] (Sideload/Flash via orangefox recovery) 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#LOS#V#Community ✨ Changelogs - Initial build ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - vanilla build: Recommended Gapps 🏆 Credits - Chandu for base DT - Hellboy for Meteoric kernel - Fabian for PA Glyph Implementation - Testers: @Sergio_Boscolo 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #692 · 18.11.2025 г., 20:51

crDroid - Unofficial | Android 16 | Nothing Phone (2) 📝 Details: - Version: v12.3 - Device: #Pong - Released: 15/11/25 ⬇️ Downloads: ROM and Recovery Image ⚙️ Flashing Instructions: Here 📖 Changelogs: Here 🏷 Tags: #LOS#ROM#crDroid#Unofficial ✍️Notes: - GAPPS and Vanilla builds available - Dolby and initial Nothing camera support available - WFD broken - SukiSU Ultra with SUSFS out of the box - OTA updates are supported - Signed with release-keys - Use latest NOS 3 firmware - If face any bugs report with logs 🏆Credits: - Ghost and Chandu for DT - Fabian & HELLBOY for Glyph - HELLBOY for Meteoric Kernel 👤 Maintainer: @deadlylxrd 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #656 · 27.07.2025 г., 18:35

Lineage OS - Official | Nothing Phone (2) ✍️ Details: - Version: 22.2 - Codename: #Pong - Initial Build: 27/07/25 - Build Freq: Weeklies (Search for #Pong) 🔽 Download: ROM & Images | GAPPS (sideload) | Unofficial MicroG Builds ⚙️ Wiki: Here 🤝 Thanks: Here 📓 Reference: Here 🔖 Tags: #ROM#LOS#Official#V#Vanilla ❌ Known quirks: - Device Integrity ~ As always thanks Goolag! 👤 Maintainer: @Chandu_078 🐙 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #411 · 28.08.2024 г., 12:59

OrionOS Project - OFFICIAL | A14 | Nothing Phone (2) Based on LineageOS & crDroidAndroid 📔 Details: - Version: Centauri - Codename: #Pong - Released: 28/08/2024 🔽 Download (Recovery) : Vanilla | Gapps ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#LOS#Official#QPR3#U#NothingPhone2 ✍️ Changelog: - OTA Already Released - August Security Patch - Synced with Latest Source Changes ✍️ Note: - Kernel is prepatched with KSU (Download Manager) - Clean flashing is mandatory - Both Vanilla & Gapps Build Available ‼️ Known Bugs: - None 🏆 Credits - Chandu for base device tree & Kernel - OC'D, Miki, Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Testers 😎 Maintainer: @AgBKartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #382 · 05.08.2024 г., 15:31

OrionOS Project - OFFICIAL | A14 | Nothing Phone (2) Based on LineageOS & crDroidAndroid 📔 Details: - Version: Cosmic - Codename: #Pong - Released: 05/08/2024 🔽 Download (Recovery) : Vanilla | Gapps ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#LOS#Official#QPR3#U#NothingPhone2 ✍️ Changelog: - Tuned Lock Screen Status Bar Padding - Fixed OTA Install Error (Users need to flash this build manually with recovery.. Future updates will be OTA) - Fixed Gapps Flash Error (Vanilla Build) ✍️ Note: - Kernel is prepatched with KSU (Download Manager) - Clean flashing is mandatory - Both Vanilla & Gapps Build Available ‼️ Known Bugs: - None 🏆 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

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #381 · 04.08.2024 г., 11:17

OrionOS Project - OFFICIAL | A14 | Nothing Phone (2) Based on LineageOS & crDroidAndroid 📔 Details: - Version: Cosmic - Codename: #Pong - Released: 04/08/2024 🔽 Download (Recovery) : Vanilla | Gapps ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#LOS#Official#QPR3#U#NothingPhone2 ✍️ Note: - Kernel is prepatched with KSU (Download Manager) - Clean flashing is mandatory - Both Vanilla & Gapps Build Available - Powershare (Wireless Reverse Charging) - Auto brightness in Glyph - X-Reality Engine in Colors - MicroG should pass Integrity (Not tested) - Game Space - Battery Backup was pretty decent during testing.. Wait for a charging cycle to complete.. ‼️ Known Bugs: - Lock Screen Carrier Text is a bit right.. Would be fixed with next OTA of August SP 🏆 Credits - Chandu for base device tree & Kernel - OC'D, Miki, Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph - Testers 😎 Maintainers: @AgBKartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2

Oneplus 13 Updates

@OnePlus13Series · Post #373 · 24.01.2026 г., 03:52

LineageOS - Official | Android 16 | Oneplus 13 ✍️ Details: - Version: 23 - Codename: #dodge - Variant: #Vanilla - Released: 23 Jan 🔽 Download : Here | Gapps 📃 Changelogs: Here ⚙️ Installation: Here 🌳 Sources: DT | Kernel 🔖 Tags: #LOS#Official#ROM#Baklava 📔 Notes: Broken: eSim, Device Integrity 👤 Maintainers: @bgcngm, chandu078, dianlujitao, ItsVixano 🔔 Updates: @OnePlus13Series 💬 Discussion: @OnePlus13SeriesChatRoom

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #525 · 23.01.2025 г., 11:46

Lineage OS - Unofficial | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 22.1 - Codename: #Pong - Released: 23/1/24 🔽 Download: ROM & Images | Gapps (sideload) ⚙️ Installation: Here 🔖 Tags : #ROM#LOS#Unofficial#V#Vanilla ✨Changelog: - Initial build based on Android 15 and NOS V3.0-250113-1723 - https://t.me/NothingPhone2updates/528 👤 Dev: @Chandu_Dyavanapelli 🐙 Chat @NothingPhone2 🔔 Updates @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #441 · 24.09.2024 г., 07:02

LineageOS - UNOFFICIAL | A14 | Nothing Phone (2) 📔 Details: - Version: 21.0 - Codename: #Pong - Released: 24/09/2024 🔽 Download (Recovery) : Vanilla ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#Unofficial#LOS#QPR3#U#NothingPhone2 ✍️ Changelogs: - Gapps Flashing Error Fixed - Dolby & Dirac Removed ✍️ Note: - Stable Signed Build - GKI Kernel is prepatched with KSU (Download Manager) - Clean flashing is recommended - Flash Gapps 🏆 Credits - Chandu for base device tree & Kernel - OC'D,Miki,Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Testers 😎 Maintainers: @Kartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #437 · 15.09.2024 г., 03:54

LineageOS - UNOFFICIAL | A14 | Nothing Phone (2) 📔 Details: - Version: 21.0 - Codename: #Pong - Released: 15/09/2024 🔽 Download (Recovery) : Vanilla ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#Unofficial#LOS#QPR3#U#NothingPhone2 ✍️ Changelogs: - September Security Patch - Nothing Charging Control - OTG Compatibility - Glyph Improvements - BCR Updated ✍️ Note: - Stable Signed Build - GKI Kernel is prepatched with KSU (Download Manager) - Clean flashing is mandatory - Dolby Included - Flash Gapps 🏆 Credits - Chandu for base device tree & Kernel - OC'D, Miki, Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Testers 😎 Maintainers: @Kartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #415 · 30.08.2024 г., 19:29

LineageOS - UNOFFICIAL | A14 | Nothing Phone (2) 📔 Details: - Version: 21.0 - Codename: #Pong - Released: 31/08/2024 🔽 Download (Recovery) : Vanilla ⚙️ Installation: Here 📸 Screenshots: Here 🆘 Support: Telegram 🔖 Tags : #ROM#AOSP#Official#LOS#QPR3#U#NothingPhone2 ✍️ Changelogs: - Switched to GKI Kernel - Updated Dolby Atmos - BCR Included - Introduced Battery Tile - Glyph Improvements - Brightness Slider Issue Fixed - Tuned Status Bar Padding ✍️ Note: - Stable Signed Build - GKI Kernel is prepatched with KSU (Download Manager) - Clean flashing is mandatory - Flash Gapps 🏆 Credits - Chandu for base device tree & Kernel - OC'D, Miki, Unluck & Ghost for all help - Fabian & Hellboy for PA Glyph Implementation - Testers 😎 Maintainers: @Kartikey 🔔 Updates: @NothingPhone2Updates 💬 Chat: @NothingPhone2

12
ПретходнаСтраница 1 од 2Следна