摘要: Python中os.system和os.popen区别 Python调用Shell,有两种方法:os.system(cmd)或os.popen(cmd)脚本执行过程中的输出内容。实际使用时视需求情况而选择。 两者的区别是: os.system(cmd)的返回值是脚本的退出状态码,只会有0(成功),1 阅读全文
posted @ 2019-04-12 18:11 兴风作浪 阅读(1560) 评论(0) 推荐(0) 编辑