파이썬 platform.uname()

1 개요[ | ]

파이썬 platform.uname()
윈도우 10
import platform
print( platform.system() )
# Windows
print( platform.release() )
# 10
print( platform.uname() )
# uname_result(system='Windows', node='JM-LAPTOP', release='10', version='10.0.18362', machine='AMD64', processor='Intel64 Family 6 Model 142 Stepping 9, GenuineIntel')
print( platform.uname().version )
# 10.0.18362
우분투 16.04
import platform
print( platform.system() )
# Linux
print( platform.release() )
# 4.8.0-41-generic
print( platform.uname() )
# uname_result(system='Linux', node='localhost', release='4.8.0-41-generic', version='#44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017', machine='x86_64', processor='')
print( platform.uname().version )
# #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}