2015-11-18 06:14:39 +00:00
|
|
|
>>> import platform, sys, socket
|
|
|
|
|
>>> platform.architecture()
|
|
|
|
|
('64bit', 'ELF')
|
|
|
|
|
>>> platform.machine()
|
|
|
|
|
'x86_64'
|
|
|
|
|
>>> platform.node()
|
|
|
|
|
'yourhostname'
|
|
|
|
|
>>> platform.system()
|
|
|
|
|
'Linux'
|
2013-04-10 21:29:02 -07:00
|
|
|
>>> sys.byteorder
|
|
|
|
|
little
|
|
|
|
|
>>> socket.gethostname()
|
2015-11-18 06:14:39 +00:00
|
|
|
'yourhostname'
|
2013-04-10 21:29:02 -07:00
|
|
|
>>>
|