![]() |
1
10
|
![]() |
2
2
http://docs.python.org/library/subprocess.html
如果您试图重定向当前正在执行的脚本的stdout,那么只需要获得正确的文件句柄。在我的脑子里,stdin是0,stdout是1,stderr是2,但是仔细检查一下。在那一点上我可能错了。 |