现在把知道的调用方式写下来
os方式:
os.system(' command [option] ')
print os.popen(' command [option] ').read()
commands:
print commands.output(' command [option] ')
subprocess:
subprocess.call([' command ','[option]'])
subprocess.Popen(' command ')
现在把知道的调用方式写下来
os方式:
os.system(' command [option] ')
print os.popen(' command [option] ').read()
commands:
print commands.output(' command [option] ')
subprocess:
subprocess.call([' command ','[option]'])
subprocess.Popen(' command ')
python执行shell命令的几种方式
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M