import os r = os.popen(‘python -V‘).read() print(type(r)) print(r)
# os.system(‘python -V‘) # os.system(‘tree‘)
退出进程
size_str = os.popen(‘adb shell wm size‘).read() if not size_str: print(‘请安装 ADB 及驱动并配置环境变量‘) sys.exit()
原文地址:https://www.cnblogs.com/andy9468/p/8252537.html
时间: 2024-11-10 15:28:43