import platform
def isWondows():
'''
判断当前运行平台
:return:
'''
sysstr = platform.system()
if (sysstr == "Windows"):
return True
elif (sysstr == "Linux"):
return False
else:
print ("Other System ")
return False
python 判断当前是Windows还是Linux平台
最新推荐文章于 2025-05-16 13:12:15 发布