code: def login(self, user=None, password=None, **kwargs):
          
          headers = self._generate_headers()
          self.s.headers.update(headers)
  
          # init cookie
          self.s.get(self.LOGIN_PAGE)
  
          # post for login
          params = self.create_login_params(user, password, **kwargs)
          rep = self.s.post(self.LOGIN_API, data=params)
  
          self.check_login_success(rep)
          log.info("登录成功")
docs: 登陆接口
          :param user: 用户名
          :param password: 密码
          :param kwargs: 其他参数
          :return: