python 执行系统文件
from subprocess import Popen,PIPE node = 'node test.js {sessionId} "{body}" {action}'.format(sessionId=self.sessionId,body=self.body,action=self.action) data = Popen(node,stdout=PIPE,stderr=PIPE) a,b = data.communicate() # print(a.decode('utf-8')) print(b)