现在把知道的调用方式写下来
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 ‘)
时间: 2024-10-16 12:07:39