import platform
print(platform.system())
if(platform.system()=='Windows'):
print('Windows系统')
elseif(platform.system()=='Linux'):
print('Linux系统')
else:
print('其他')
python判断当前的操作系统
猜你喜欢
转载自blog.csdn.net/weixin_38570967/article/details/81161214
今日推荐
周排行