📅  最后修改于: 2022-03-11 14:45:11.834000             🧑  作者: Mango
import subprocess
output = subprocess.check_output("cat /etc/os-release", shell=True)
output = output.decode("utf-8")
print("Version info: ",output)