文件“/usr/lib/python2.4/subprocess.py”中的错误,第542行,在__init__中

时间:2016-01-05 14:11:24

标签: python syntax-error subprocess

WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.NoContent;

当我执行此脚本时,错误是:

import subprocess, sys, shlex

for i in range(n):
    node_id = "n" + str(i + 1)
    cmd = "x-terminal-emulator -e 'sudo python3.2 node.py " + str(n) + " " + node_id + "'"
    process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE)
    #process.wait()

print (process.returncode)

0 个答案:

没有答案