python判断当前的操作系统

it2025-04-19  20

https://blog.csdn.net/weixin_38570967/article/details/81161214

import platform print(platform.system()) if(platform.system()=='Windows'): print('Windows系统') elseif(platform.system()=='Linux'): print('Linux系统') else: print('其他')

 

最新回复(0)