有空自己整理下,详见这里 os模块的execl方法使用os模块的system方法使用os模块的popen方法使用commands模块的getoutput方法 转载于:https://www.cnblogs.com/nepaul/archive/2012/04/18/2454814.html