📜  python 格式子进程输出 - Python 代码示例

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

代码示例1
import subprocess

output = subprocess.check_output("cat /etc/os-release", shell=True)
output = output.decode("utf-8")
print("Version info: ",output)