Answers for "python get platform"

0

python get platform

>>> import os
>>> os.name
'posix'
>>> import platform
>>> platform.system()
'Linux'
>>> platform.release()
'2.6.22-15-generic'

"""The output of platform.system() is as follows:

Linux: Linux
Mac: Darwin
Windows: Windows"""
Posted by: Guest on March-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language