def login_with_cookies(self, cookies):
if os.path.isfile(cookies):<EOL><INDENT>with open(cookies) as f:<EOL><INDENT>cookies = f.read()<EOL><DEDENT><DEDENT>cookies_dict = json.loads(cookies)<EOL>self._session.cookies.update(cookies_dict)<EOL>
使用cookies文件或字符串登录知乎

        :param str cookies:
            ============== ===========================
            参数形式       作用
            ============== ===========================
            文件名         将文件内容作为cookies字符串
            cookies 字符串  直接提供cookies字符串
            ============== ===========================
        :return: 无
        :rtype: None