14 lines
244 B
Python
14 lines
244 B
Python
>>> import platform, sys, socket
|
|
>>> platform.architecture()
|
|
('64bit', 'ELF')
|
|
>>> platform.machine()
|
|
'x86_64'
|
|
>>> platform.node()
|
|
'yourhostname'
|
|
>>> platform.system()
|
|
'Linux'
|
|
>>> sys.byteorder
|
|
little
|
|
>>> socket.gethostname()
|
|
'yourhostname'
|
|
>>>
|