windows当中系统相关python接口

# 获取当前系统是否是windows,如果是windows的话返回Windows
import platform
print(platform.system())
# Windows

你可能感兴趣的:(笔记,python)