📜  python check is os is windows - Python 代码示例

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

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