Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python check is os is windows

from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...
Comment

python check operating system

from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...
Comment

check os python

>>> import platform
>>> platform.system()
'Windows'
>>> platform.release()
'XP'
>>> platform.version()
'5.1.2600'
Comment

PREVIOUS NEXT
Code Example
Python :: making hexagon in python turtle 
Python :: ValueError: logits and labels must have the same shape ((None, 1) vs (None, 2)) 
Python :: python generate list alphabet 
Python :: python open website 
Python :: plt.imshow not showing 
Python :: python console command 
Python :: dataframe describe in pandas problems 
Python :: print undeline and bold text in python 
Python :: send email hotmail using python 
Python :: pythonic 
Python :: pandas rename single column 
Python :: how to check for duplicates in a column in python 
Python :: django template iterate dict 
Python :: change python 3.5 to 3.6 ubuntu 
Python :: emacs region indent python 
Python :: exact distance math 
Python :: yum install python3 
Python :: how do I run a python program on atom 
Python :: datetime to int python 
Python :: Codeforce 4C solution in python 
Python :: alarm when code finishes 
Python :: how to create a custom callback function in keras while training the model 
Python :: exclude columns in df 
Python :: how to create list from a to z in python 
Python :: how to print an input backwards in python 
Python :: QTableWidget as a button pyqt 
Python :: flip pyplot python 
Python :: from .cv2 import * ImportError: /home/pi/.local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8 
Python :: flask return html 
Python :: binary number in python 32 bit 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =