📜  导入 sys 执行 cmd - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:13.034000             🧑  作者: Mango

代码示例1
Use os.popen with read to get the output of the command 

import os
print os.popen("echo Hello World").read()