python platform模块

 

该模块用来访问平台相关属性。

常见属性和方法

 

系统名称

platform.system()

返回系统/操作系统名称,例如“Linux”,“Windows”

>>> platform.system()
'Windows'
 
#linux
>>> platform.system()
'Linux'

 

posted @ 2018-05-02 10:11  minger_lcm  阅读(119)  评论(0编辑  收藏  举报