📜  python get os - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.820000             🧑  作者: Mango

代码示例2
>>> import os
>>> os.name
'posix'
>>> import platform
>>> platform.system()
'Linux'
>>> platform.release()
'2.6.22-15-generic'