1、os.system()函數,傳回指令退出狀态。

#encoding=utf-8
from subprocess import check_output
cmd = 'my.exe 參數...'
print check_output(cmd)
1、os.system()函數,傳回指令退出狀态。
#encoding=utf-8
from subprocess import check_output
cmd = 'my.exe 參數...'
print check_output(cmd)