摘要: 最近在用subprocess中的Popen做个磁盘监控小程序,但是在使用ps = Popen("df -h", shell=True, stdout=PIPE, stderr=PIPE)之后,再使用output_lines = ps.stdout.readlines()的时候,output_lines总是内容为空,有哪位知道是什么原因么?btw:我是在windows下设计这个程序的代码Code h... 阅读全文
posted @ 2010-05-04 10:49 小楼 阅读(10057) 评论(1) 推荐(0) 编辑