python platform模块

Posted minger_lcm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python platform模块相关的知识,希望对你有一定的参考价值。

 

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

常见属性和方法

 

系统名称

platform.system()

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

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

 

以上是关于python platform模块的主要内容,如果未能解决你的问题,请参考以下文章

python学习之platform模块

platform模块

python-platform模块:平台相关属性

python中常见模块命令(os/sys/platform)

环境初始化 Build and Install the Apache Thrift IDL Compiler Install the Platform Development Tools(代码片段

python获取系统信息模块详解