python 执行系统命令的方式 2019-01-31 本文已影响0人 邪恶的奥伯伦 os.system('ps aux') 只返回0 表示成功 os.popen('ps aux') .readlines() 通过管道方式 可以拿到返回值