使用子流程模块
master.py
import subprocessretpre = subprocess.call(["/usr/bin/python", "/path/to/test.py"])print "Return pre of test.py is ", retpre

使用子流程模块
master.py
import subprocessretpre = subprocess.call(["/usr/bin/python", "/path/to/test.py"])print "Return pre of test.py is ", retpre