文章目录
一. Configuration
1. Windows OS 下实现鼠标双击 .py 文件即可执行
一般情况下,安装 python 的时候如果设置了系统环境变量,那么就默认 .py 文件支持了双击直接运行。
如果不行,可以按以下方式修改:
右键选中需要设置的 .py 文件,设置“属性”,将“打开方式”更改为 python 安装目录下的 python.exe
(右键—属性—常规—打开方式)
二. Examples
1. adb root && adb remount && adb shell “rm -rf dir”
import os
os.system('adb version')
'''
TODO
Menu to select
Note
If you want to read and storage, you should use "os.popen"
'''
# " "" " do not work, ' "" ' is ok
# os.system("adb root && adb remount && adb shell "rm -rf /data/vendor/ylog && rm -rf /storage/emulated/0/ylog"")
os.system('adb root && adb remount && adb shell "rm -rf /data/vendor/ylog && rm -rf /storage/emulated/0/ylog"')