python执行系统命令的方法

output=os.popen(command).read()

os.popen()会执行command命令并且获取返回值

os.system(command)也可以执行系统命令但是不能获取返回值