code: 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
docs: 感谢或取消感谢回答
  
          :param Answer answer: 要感谢或取消感谢的回答
          :param thanks: True-->感谢，False-->取消感谢
          :return: 成功返回True，失败返回False
          :rtype: bool