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