现在把知道的调用方式写下来
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 ‘)
原文地址:http://linuxyy.blog.51cto.com/9490250/1772762