摘要: import osos.system('dir') print(os.popen('dir').read()) print([d for d in os.listdir('.')]) 注意:os.popen每次运行都会开一个CMD 像调用”ls”这样的shell命令,应该使用popen的方法来获得内 阅读全文
posted @ 2018-07-17 15:01 只记今朝笑 阅读(132) 评论(0) 推荐(0) 编辑