subprocess的实例不能pickle
from subprocess import Popen, PIPE, STDOUT
cmd = '/home/mlzboy/my/ide/test/time_sleep.py'
p = Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
print type(p)
import pickle
pickle.dump(p,open("./p.pickle","wb"))
print "done!"
查看更多关于subprocess的实例不能pickle的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did43917