标签:gets comm stat get and 命令执行 shell 状态码 状态
commands 模块通常用于执行一些 shell 命令
commands.getoutput() :用于执行 shell 命令,如 commands.getoutput(‘ls /tmp/‘)
commands.getstatusoutput() :用于执行 shell 命令,并返回命令执行后的状态码
标签:gets comm stat get and 命令执行 shell 状态码 状态
原文地址:http://www.cnblogs.com/pzk7788/p/7816229.html