确定操作系统分布的python方法RHEL、CentOS或SUSE

2024-09-28 01:23:48 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有什么Python式的方法来确定操作系统的分布/风格?在

cat/etc/issue显示了以下内容--[its CentOS 5.6]

[root@localhost Abhishek]# cat /etc/issue
CentOS release 5.6 (Final)
Kernel \r on an \m

Tags: 方法anlocalhostrelease风格onetcroot

热门问题