1、使用这个方法来运行adb命令def run_adb_way3(adb_command): """运行adb命鸡舍诽浓令并返回结果""" process = os.popen(adb_command) output = process.read() return output

3、首先是截图命令run_adb_way3("adb shell screencap /sdcard/screen.png")

5、截图就保存到本地了

1、使用这个方法来运行adb命令def run_adb_way3(adb_command): """运行adb命鸡舍诽浓令并返回结果""" process = os.popen(adb_command) output = process.read() return output
3、首先是截图命令run_adb_way3("adb shell screencap /sdcard/screen.png")
5、截图就保存到本地了