def __run_shell(self, shell):
        """执行shell并随时打印输出"""
        cmd = subprocess.Popen(shell, stdin=subprocess.PIPE, stderr=sys.stderr, close_fds=True,
                               stdout=sys.stdout, universal_newlines=True, shell=True, bufsize=1)
        cmd.communicate()
        return cmd.returncode









