2018年4月24日笔记

内置模块:commands (python2中使用) commands.getoutput("cmd") --> 获取shell命令的返回结果,是string类型 commands.getstatusoutput("cmd") --> 返回一个元组(status,output), status代表的shell命令的返回状态(int类型),如果成功的话是0;output是shell的返回的结果(st
相关文章
相关标签/搜索