python platform module

 

This module is used to access platform specific properties.

Common properties and methods

 

system name

platform.system()

Returns the system/operating system name, e.g. "Linux", "Windows"

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325155508&siteId=291194637