现在把知道的调用方式写下来
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 ')
转载于:https://blog.51cto.com/linuxyy/1772762