python 获取进程输出
import subprocess
proc = subprocess.Popen([cmd_array],stdout=subprocess.PIPE)
print(proc.stdout.read())