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

check os python

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

PREVIOUS NEXT
Code Example
Python :: blink raspberry pico 
Python :: pip clear cache command 
Python :: rename columns pandas 
Python :: items of a list not in another list python 
Python :: python move file 
Python :: sleep 5 seconds py 
Python :: python random true false 
Python :: python install pip 
Python :: python open mat file 
Python :: conda create environment 
Python :: pandas set options 
Python :: os remove entire folder python 
Python :: install streamlit 
Python :: scrapy get current url 
Python :: pandas remove timezone info 
Python :: Remove duplicates with pandas 
Python :: cv2 crop image 
Python :: jupyter notebook plot larger 
Python :: Extract images from html page based on src attribute using beatutiful soup 
Python :: export image python 
Python :: convert column to numeric pandas 
Python :: view whole dataset in python 
Python :: download pdf from link using python 
Python :: days of week 
Python :: python flask sample application 
Python :: Write a line to a text file using the write() function 
Python :: center button in tkinter 
Python :: what to do in python when you get pygame.Surface object is not callable 
Python :: import csv file using pandas 
Python :: clearing all text from a file in python 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =