📜  python subprocess stdout to dev null - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.652000             🧑  作者: Mango

代码示例1
import os
import subprocess

retcode = subprocess.call(['echo', 'foo'], 
    stdout=subprocess.DEVNULL,
    stderr=subprocess.STDOUT)