📌  相关文章
📜  subprocess.CalledProcessError: Command '['netsh', 'wlan', 'show', 'profiles']' 返回非零退出状态 1. - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:53.887000             🧑  作者: Mango

代码示例1
import subprocess
try:
    subprocess.check_output("dir /f",shell=True,stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
    raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output))