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

常见属性和方法

 

系统名称

platform.system()

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

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

 

相关文章:

  • 2022-03-05
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-02-26
  • 2021-06-07
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2021-08-12
  • 2022-12-23
  • 2021-08-11
  • 2021-09-21
相关资源
相似解决方案