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

TGINSIGHT SIMILAR POSTS

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

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

Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic

Hashtags

Резултати

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

Пребарај: #install

当前筛选 #install清除筛选
Lsposed Modules Updates Tracker

@lsposed_Modules_Updates_Trackers · Post #6887 · 28.04.2026 г., 02:07

#install#wushuo 模块:com.example.installhook 简介:install hook 版本:11-1.1 更新时间:2022/06/06 21:44:03 更新日志: ColorOS 应用包安装程序自动点击安装与完成按钮,记得配合ColorOSTool开启原生安装程序哦! @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot

Lsposed Modules Updates Tracker

@lsposed_Modules_Updates_Trackers · Post #6745 · 27.04.2026 г., 19:01

#install#wushuo 模块:com.example.installhook 简介:install hook 版本:11-1.1 更新时间:2022/06/06 21:44:03 更新日志: ColorOS 应用包安装程序自动点击安装与完成按钮,记得配合ColorOSTool开启原生安装程序哦! @lsposed_Modules_Updates_Trackers | @lsposed_Geeks_Bot

书墨资源

@Shumozy · Post #8776 · 25.12.2025 г., 07:59

#Windows#Install#Clean Up https://pan.quark.cn/s/04a85bcccc73 https://pan.baidu.com/s/1UxkdBBRzvvwtgcLQ3-VFBA?pwd=yguj https://pan.xunlei.com/s/VOhJVolqMRujDdmMR4dvqQj-A1?pwd=hgan 频道指南机场推荐AI绘画

Libreware

@libreware · Post #1247 · 12.03.2024 г., 03:16

MicroG Installers: Just installing the microg components as user apps will partially function but you will not get full functionality without the main components installed as system apps, like the location components. There are a few 3rd-party installers that handle that and set all the required permissions etc. These are the ones generally recommended *Note: currently all installers use the official microg version, so you can update it from its F-Droid repository. ♦️MicroGPlus by TheHitman https://bitgapps.io/extra.html https://t.me/MicroGPlusChat ♦️Microg installers by Ale5000 https://github.com/micro5k/microg-unofficial-installer More stuff https://github.com/micro5k/ ♦️MicroG Installer Revived.... again by spacebarred for magisk or ksu https://github.com/spacealtctrl/microg_installer_revived_again/ https://github.com/spacealtctrl/microg_installer_revived_again/releases https://t.me/microGRevivedAgainResults ♦️MinMicroG by Shane the Awesome You need to clean flash a rom that has signature spoofing support and flash this zip in recovery, choose the standard zip if unsure README: https://github.com/FriendlyNeighborhoodShane/MinMicroG/blob/master/README.md Get the latest release from here: https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI/releases Or stable release from here (outdated): https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases ♦️microG Installer Revived by nift4 (currently outdated) README: https://github.com/nift4/microg_installer_revived#readme Download: https://github.com/nift4/microg_installer_revived/releases ♦️LineageOS for microG (Rom): https://lineage.microg.org ♦️MicroG Official links: https://microg.org https://github.com/microg https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616 📲MicroG official F-Droid repository (Recommended to add if you use MicroG and enable unstable updates in fdroid) https://microg.org/fdroid.html Link to add: https://microg.org/fdroid/repo?fingerprint=9BD06727E62796C0130EB6DAB39B73157451582CBD138E86C468ACC395D14165 📡@NoGoolag@Libreware #microg#install#installers#pack#links

Установка Kotatogram на macOS¹: 1. Открываем dmg файл 2. Копируем Kotatogram из dmg образа 3. Кладём его в "/Applications"² через шестерёнку 4. Запускаем терминал³ 5. Вводим "xattr -r -d com.apple.quarantine /Applications/Kotatogram.app" 6. Запускаем Kotatogram из папки Applications ¹ - Требуется macOS Catalina или новее ² - Папка «Программы» в Finder ³ - Launchpad → Поиск → Терминал Спасибо за подсказки: @IlyaFedin, @smartman_ru, @Kylmakalle #Install#Run#Kotatogram#macOS#Catalina #Установка#Запуск#Котатограм#макос#макось

Libreware

@libreware · Post #1132 · 22.05.2023 г., 01:39

🔴App download / install / manage Google PlayStore™ can be installed with #minmicrog and other microg installers. Some apps you bought with a Google account may require it to check for licenses. If it doesn't work check possible solutions here: https://t.me/NoGoolag/19314 ( #issues ) You can buy apps with your Google account from a web browser and then download it with Google playstore / Aurora Store / Yalp Store Don't buy apps to Google, you're financing that evil corporation with the 30% cut they take from every app sold Here are some better alternatives to get and manage Android apps: 🎁 F-Droid apks from f-droid.org repository or extra repositories https://t.me/NoGoolag/1034 🎁 Aurora Droid (F-Droid foss client) apks from f-droid.org repository or extra repositories https://t.me/NoGoolag/1242 🎁 Aurora Store (Google Playstore foss client) apks from Google Playstore https://t.me/NoGoolag/1123 @AuroraSupport https://gitlab.com/AuroraOSS/AuroraStore 🎁 Neo Store (F-Droid foss client) https://t.me/NoGoolag/14666 🎁 Droidify (F-Droid foss client) https://github.com/Iamlooker/Droid-ify/releases 🎁 App Lounge by eOS (Foss/commercial/pwa) https://doc.e.foundation/support-topics/app_lounge 🎁 Obtainium (Foss apps from multiple sources) https://github.com/ImranR98/Obtainium 🎁 Accrescent https://accrescent.app 🎁 Izzyondroid https://gitlab.com/sunilpaulmathew/izzyondroid just izzyondroid repo standalone app (for those who don't wanna use fdroid due to signature vulnerability) 🎁 Ffupdater to download and update web browser apps https://f-droid.org/packages/de.marmaro.krt.ffupdater/ 🎁 Skydroid https://github.com/redsolver/skydroid https://get.skydroid.app 🎁 Foxy Droid (F-Droid foss client) apks from f-droid.org repository or extra repositories https://f-droid.org/app/nya.kitsunyan.foxydroid/ https://github.com/kitsunyan/foxy-droid 🎁 apkeep https://www.eff.org/deeplinks/2021/09/introducing-apkeep-eff-threat-labs-new-apk-downloader https://github.com/EFForg/apkeep 🎁 APKGrabber apks from Google Play, APKPure, APKMirror or Uptodown (enable Izzy repo) https://f-droid.org/app/de.apkgrabber 🎁 APKMirror apks from APKMirror https://f-droid.org/app/taco.apkmirror 🎁 ApkTrack Updates on PlayStore and other sources https://f-droid.org/app/fr.kwiatkowski.ApkTrack 🎁 Kali Nethunter Store Pentesting apps https://store.nethunter.com 🎁 Evozi apk downloader (website) https://apps.evozi.com/apk-downloader 🎁 Raccoon APK Downloader for Linux, Windows and MacOS https://raccoon.onyxbits.de 🔴App management 🛠 AppManager @AppManagerChannel https://github.com/MuntashirAkon/AppManager https://f-droid.org/repo/io.github.muntashirakon.AppManager 🛠 AppWarden https://t.me/AuroraOfficial/59 Izzy repo https://apt.izzysoft.de/fdroid/repo/com.aurora.warden 🛠 /d/gapps Delete/disable GApps and other bloatwares https://t.me/NoGoolag/1247 🛠 Batch Uninstaller Uninstall multiple applications at once https://f-droid.org/app/com.saha.batchuninstaller 🛠 Apk Extractor Extract APKs from your device, even if installed from the Playstore. Root access https://f-droid.org/app/axp.tool.apkextractor 🛠 OpenAPK App manager uninstall, hide, disable, extract, share https://f-droid.org/app/com.dkanada.openapk 🛠 NeoBackup https://github.com/NeoApplications/Neo-Backup 🔴App info 🔬 ClassyShark3xodus Scan apps for trackers https://f-droid.org/app/com.oF2pks.classyshark3xodus 🔬 Exodus Privacy Analyzes privacy concerns in apps from Google Play store https://f-droid.org/app/org.eu.exodus_privacy.exodusprivacy 🔬 App Watcher Follow updates and changelogs of apps in Play Store not currently installed on your device (enable Izzy repo) https://f-droid.org/app/com.anod.appwatcher 🔬 Stanley Explore app info for developers https://f-droid.org/app/fr.xgouchet.packageexplorer 📡@NoGoolag📡@Libreware #apk#install#app#playstore#store#alternatives#fdroid#aurora#yalp#huawei