#encoding:utf-8import os,time#=======================查找手机设备序列号=============a='adb devices'b=os.popen(a).readlines()#print(b)l=[]for sn in b: if 'device' in sn and 'List' not in sn: a=sn.split('\t')[0] l.append(a)print(l) #手机序列号列表#====================…