摘要: os.system 执行的命令为打印,返回值为0或1 os.popen 可以保存返回值,无法保存返回值 subprocess subprocess.run 涉及到管道 用shell=True,此时返回值returncode=0 即不用列表形式,需要指定shell=True。 stdout与stder 阅读全文
posted @ 2018-04-16 21:31 EngineTang 阅读(412) 评论(0) 推荐(0)