Answers for "call os command from python"

2

python for doing os command execution

import os
os.system("start chrome")
os.system("py")
Posted by: Guest on May-10-2021
0

python get os

>>> import os
>>> os.name
'posix'
>>> import platform
>>> platform.system()
'Linux'
>>> platform.release()
'2.6.22-15-generic'
Posted by: Guest on July-22-2020

Python Answers by Framework

Browse Popular Code Answers by Language