📅  最后修改于: 2022-03-11 14:47:01.652000             🧑  作者: Mango
import os
import subprocess
retcode = subprocess.call(['echo', 'foo'],
stdout=subprocess.DEVNULL,
stderr=subprocess.STDOUT)