python判断操作系统

https://www.crifan.com/python_get_current_system_os_type_and_version_info/
参考:https://stackoverflow.com/questions/1854/python-what-os-am-i-running-on
import platform
print(platform.system())

posted @ 2018-07-04 15:04  nanaindi  阅读(162)  评论(0编辑  收藏  举报