摘要: os.system()无法获得到输出和返回值 os.popen()output = os.popen('cat /proc/cpuinfo')print output.read()返回的是 file read 的对象,对其进行读取 read() 的操作可以看到执行的输出,读取不了返回值 comman 阅读全文
posted @ 2016-03-08 12:56 小沐枫 阅读(521) 评论(0) 推荐(0) 编辑