Chinaunix
标题:
管道popen2
[打印本页]
作者:
tanjiyong138
时间:
2016-07-27 17:23
标题:
管道popen2
out1,in1 = popen2.popen2("cmd")
in1.write(str)
in1.close()
ret = out1.read()
out1.close()
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2