platform - KerwinKoo/KerwinKoo.github.io GitHub Wiki python 获取当前系统名称 import platform def UsePlatform(): sysstr = platform.system() if(sysstr =="Windows"): print ("Call Windows tasks") elif(sysstr == "Linux"): print ("Call Linux tasks") else: print ("Other System tasks") UsePlatform() ⚠️ **GitHub.com Fallback** ⚠️