':param Answer answer: èŠæè°¢æåæ¶æè°¢çåç­
:param thanks: True-->æè°¢ïŒFalse-->åæ¶æè°¢
:return: æåè¿åTrueïŒå€±èŽ¥è¿åFalse
:rtype: bool'

def thanks(self, answer, thanks=True):

    from .answer import Answer
    if (isinstance(answer, Answer) is False):
        raise ValueError('argument    answer    need    to    be    Zhihu.Answer    object.')
    if (answer.author.url == self.url):
        return False
    data = {'_xsrf': answer.xsrf, 'aid': answer.aid}
    res = self._session.post((Thanks_Url if thanks else Cancel_Thanks_Url), data=data)
    return (res.json()['r'] == 0)
