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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #309 · 2 фев.

Метод строки split() разделяет строку на несколько строк по указанному символу >>> "a_b_c".split('_') ['a', 'b', 'c'] Можно указать максимальное количество разделений >>> "a_b_c".split('_', 1) ['a', 'b_c'] Или резать с другой стороны с помощью rsplit() (right split) >>> "a_b_c".rsplit('_', 1) ['a_b', 'c'] А что будет если оставить аргументы пустыми? >>> "a_b_c".split() ['a_b_c'] Получаем список с одним элементом, потому что по умолчанию используется пробельный символ. >>> "a b c".split() ['a', 'b', 'c'] То есть это равнозначно такому вызову? >>> "a b c".split(" ") ['a', 'b', 'c'] Кажется да, но нет! Давайте попробуем добавить пробелов между буквами >>> "a b c".split(" ") ['a', '', '', 'b', '', '', 'c'] И вот картина уже не так предсказуема 😕 А вот что будет по умолчанию >>> "a b c".split() ['a', 'b', 'c'] Всё снова красиво! 🤩 По умолчанию в качестве разделителя используется любой пробельный символ, будь то табуляция или новая строка. Включая несколько таких символов идущих подряд. А также игнорируются пробельные символы по краям строки. >>> "a\t b\n c ".split() ['a', 'b', 'c'] Аналогичный способ можно собрать с помощью регулярного выражения. Но пробелы по краям строки придется обрабатывать дополнительно. >>> import re >>> re.split(r"\s+", ' a b c '.strip()) ['a', 'b', 'c'] Здесь тоже можно указать количество разделений >>> re.split(r"\s+", 'a b c', 1) ['a', 'b c'] А что если мы хотим написать красиво, то есть split() без аргументов, но при этом указать количество разделений? В этом случае первым аргументом передаём None >>> "a\n b c".split(None, 1) ['a', 'b c'] Данный метод не учитывает строки с пробелами, взятые в кавычки 'a "b c" '.split() ['a', '"b', 'c"'] Но для таких случаев есть другие способы. #tricks#basic

Резултати

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

Пребарај: #minmicrog

当前筛选 #minmicrog清除筛选
Libreware

@libreware · Post #936 · 28.04.2021 г., 11:52

MinMicroG MicroG installer v2.10 28th april, 2021 By MOVZX and FatherJony and FriendlyNeighborhoodShane ⚠️ Check the guide called README.md inside the zips ⚠️ There's not much to update, unsurprisingly. I just wanted to make sure this thing still works. Changelog: - Update MicroG - Update AuroraSuite - Switch LocalGSM NLP backend back to the now-maintained FDroid build - Support addon.d v2 for newer A/B devices Check release notes for troubleshooting the self-check problems. ⬇️ Downloads: https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases/tag/2021.04.28 Build scripts and instructions: https://github.com/FriendlyNeighborhoodShane/MinMicroG 📡@NoGoolag #minmicrog#microg#installer

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