📜  检查python代码示例中的操作系统

📅  最后修改于: 2022-03-11 14:46:43.846000             🧑  作者: Mango

代码示例1
from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...