def author(self):
        """获取答案作者.

        :return: 答案作者
        :rtype: Author
        """
        from .author import Author

        author = self.soup.find('div', class_='zm-item-answer-author-info')
        url, name, motto, photo = parser_author_from_tag(author)
        if name == '匿名用户':
            return ANONYMOUS
        else:
            return Author(url, name, motto, photo_url=photo,
                          session=self._session)
def author ( self ) : from . author import Author author = self . soup . find ( 'div' , class_ = 'zm-item-answer-author-info' ) url , name , motto , photo = parser_author_from_tag ( author ) if name == '匿名用户' : return ANONYMOUS else : return Author ( url , name , motto , photo_url = photo , session = self . _session )
获取答案作者.

        :return: 答案作者
        :rtype: Author