반응형
Windows 또는 Unix 등을 사용하는지 확인하려면 무엇을 확인해야합니까?
해결 방법
>>> import os
>>> os.name
'posix'
>>> import platform
>>> platform.system()
'Linux'
>>> platform.release()
'2.6.22-15-generic'
참조 페이지 https://stackoverflow.com/questions/1854
반응형
'파이썬' 카테고리의 다른 글
파이썬 Error when creating a new text file with python? (0) | 2021.01.07 |
---|---|
파이썬 Python: strip a wildcard word (0) | 2021.01.07 |
파이썬 양식 추가를 기반으로 장고 편집 양식? (0) | 2021.01.07 |
파이썬 가상 파일 처리는 어떻게합니까? (0) | 2021.01.07 |
파이썬 How to create a zip archive of a directory in Python? (0) | 2021.01.07 |
댓글