python 利用adb工具实现手机屏幕截图并发到电脑桌面
def run_adb_way(adb_command):process = os.popen(adb_command)
output = process.read()
return output
run_adb_way("adb shell screencap /sdcard/screen.png")#adb shell screencap /sdcard/截图名称
run_adb_way("adb pull/sdcard/screen.png C:\\Users\m\Desktop/screen.png")#adb pull /sdcard/截图名称 电脑路径/截图名称
run_adb_way函数的目的是通过python操作adb命令行
页:
[1]