2017年10月19日
摘要: 当我们想要调用系统命令,可以使用os,commands还有subprocess模块整理如下: os模块: 1. os.system 输出命令结果到屏幕、返回命令执行状态。 2. os.popen("dir").read() 会保存命令的执行结果输出,返回的是 file read 的对象,对其进行读取 阅读全文
posted @ 2017-10-19 23:55 Sean_Yao 阅读(278) 评论(0) 推荐(0)