def me(self):
        """获取使用特定 cookies 的 Me 实例

        :return: cookies对应的Me对象
        :rtype: Me
        """
        from .me import Me
        headers = dict(Default_Header)
        headers['Host'] = 'zhuanlan.zhihu.com'
        res = self._session.get(Get_Me_Info_Url, headers=headers)
        json_data = res.json()
        url = json_data['profileUrl']
        name = json_data['name']
        motto = json_data['bio']
        photo = json_data['avatar']['template'].format(
            id=json_data['avatar']['id'], size='r')
        return Me(url, name, motto, photo, session=self._session)
def me ( self ) : from . me import Me headers = dict ( Default_Header ) headers [ 'Host' ] = 'zhuanlan.zhihu.com' res = self . _session . get ( Get_Me_Info_Url , headers = headers ) json_data = res . json ( ) url = json_data [ 'profileUrl' ] name = json_data [ 'name' ] motto = json_data [ 'bio' ] photo = json_data [ 'avatar' ] [ 'template' ] . format ( id = json_data [ 'avatar' ] [ 'id' ] , size = 'r' ) return Me ( url , name , motto , photo , session = self . _session )
获取使用特定 cookies 的 Me 实例

        :return: cookies对应的Me对象
        :rtype: Me