2018年4月24日筆記

內置模塊:commands (python2中使用) commands.getoutput("cmd") --> 獲取shell命令的返回結果,是string類型 commands.getstatusoutput("cmd") --> 返回一個元組(status,output), status代表的shell命令的返回狀態(int類型),如果成功的話是0;output是shell的返回的結果(st
相關文章
相關標籤/搜索