code: def login_with_cookies(self, cookies):
          
          if os.path.isfile(cookies):
              with open(cookies) as f:
                  cookies = f.read()
          cookies_dict = json.loads(cookies)
          self._session.cookies.update(cookies_dict)
docs: 使用cookies文件或字符串登录知乎
  
          :param str cookies:
              ============== ===========================
              参数形式       作用
              ============== ===========================
              文件名         将文件内容作为cookies字符串
              cookies 字符串  直接提供cookies字符串
              ============== ===========================
          :return: 无
          :rtype: None