1 # -*- coding: utf-8 -*- 2 import os 3 import sys 4 import subprocess 5 import time 6 from uiautomator import device as d 7 subprocess.check_output(r'adb install E:Projectworkexerciseapp_list程序.apk')
输出如下:
1 adb: usage: filename doesn't end .apk: E:Projectworkexerciseapp_list鑻辫�娴佸埄璇?apk 2 Traceback (most recent call last): 3 File "E:Projectworkexercisedebug.py", line 12, in <module> 4 print subprocess.check_output(cmd) 5 File "C:Python27libsubprocess.py", line 573, in check_output 6 raise CalledProcessError(retcode, cmd, output=output) 7 subprocess.CalledProcessError: Command 'adb install E:Projectworkexerciseapp_list程序.apk' returned non-zero exit status 1