Answers for "import sys execute cmd"

0

import sys execute cmd

Use os.popen with read to get the output of the command 

import os
print os.popen("echo Hello World").read()
Posted by: Guest on June-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language