commands是python2版本里的,在python3.0以上已经没有commands模块了,使用subprocess代替commands 转载于:https://www.cnblogs.com/gswang/p/7478981.html