2021
08-08
08-08
python3 adb 获取设备序列号的实现
python3adb获取设备序列号importsubprocessdefdeal_cmd(cmd):pi=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE)#print(pi.stdin.read())returnpi.stdout.read()defdeal_result():result=deal_cmd('adbdevices')result=result.decode("utf-8")ifresult.startswith('Listofdevicesattached'):#查看连接设备result=result.strip().splitlines()#查看连接设备数量device_size=len...
继续阅读 >