📜  python 运行系统命令 - Python 代码示例

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

代码示例1
import os
cmd = "git --version"
returned_value = os.system(cmd)  # returns the exit code in unix