Answers for "python os shell command"

0

os run shell command python

import os
os.system('ls -l')
Posted by: Guest on October-29-2021
2

shell command python

import subprocess
subprocess.run(["ls", "-l"])
Posted by: Guest on June-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language