如果想单纯的获取devices信息,可以这样
import subprocess p = subprocess.Popen('adb devices', shell=True) print((p.args)