Answers for "check operating system python"

1

python check operating system

from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...
Posted by: Guest on August-25-2021

Code answers related to "check operating system python"

Python Answers by Framework

Browse Popular Code Answers by Language