码迷,mamicode.com
首页 > 其他好文 > 详细

commands 模块

时间:2017-11-10 21:42:00      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:gets   comm   stat   get   and   命令执行   shell   状态码   状态   

commands 模块通常用于执行一些 shell 命令

commands.getoutput() :用于执行 shell 命令,如 commands.getoutput(‘ls /tmp/‘)

commands.getstatusoutput() :用于执行 shell 命令,并返回命令执行后的状态码

 

 

 

 

 

     

commands 模块

标签:gets   comm   stat   get   and   命令执行   shell   状态码   状态   

原文地址:http://www.cnblogs.com/pzk7788/p/7816229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!