@property<EOL><INDENT>def comments(self):<DEDENT>
import math<EOL>from .author import Author, ANONYMOUS<EOL>from .comment import Comment<EOL>api_url = Get_Answer_Comment_URL.format(self.aid)<EOL>page = pages = <NUM_LIT:1><EOL>while page <= pages:<EOL><INDENT>res = self._session.get(api_url + '<STR_LIT>' + str(page))<EOL>if page == <NUM_LIT:1>:<EOL><INDENT>total = int(res.json()['<STR_LIT>']['<STR_LIT>'])<EOL>if total == <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>pages = math.ceil(total / <NUM_LIT:30>) <EOL><DEDENT>page += <NUM_LIT:1><EOL>comment_items = res.json()['<STR_LIT:data>']<EOL>for comment_item in comment_items:<EOL><INDENT>comment_id = comment_item['<STR_LIT:id>']<EOL>content = comment_item['<STR_LIT:content>']<EOL>upvote_num = comment_item['<STR_LIT>']<EOL>time_string = comment_item['<STR_LIT>'][:<NUM_LIT>]<EOL>time = datetime.strptime(time_string, "<STR_LIT>")<EOL>if comment_item['<STR_LIT>'].get('<STR_LIT:url>') is not None:<EOL><INDENT>a_url = comment_item['<STR_LIT>']['<STR_LIT:url>']<EOL>a_name = comment_item['<STR_LIT>']['<STR_LIT:name>']<EOL>photo_url_tmp = comment_item['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']<EOL>photo_url_id = comment_item['<STR_LIT>']['<STR_LIT>']['<STR_LIT:id>']<EOL>a_photo_url = photo_url_tmp.replace(<EOL>'<STR_LIT>', photo_url_id).replace('<STR_LIT>', '<STR_LIT>')<EOL>author_obj = Author(a_url, a_name, photo_url=a_photo_url,<EOL>session=self._session)<EOL><DEDENT>else:<EOL><INDENT>author_obj = ANONYMOUS<EOL><DEDENT>yield Comment(comment_id, self, author_obj, upvote_num, content, time)<EOL><DEDENT><DEDENT>
获取答案下的所有评论.

        :return: 答案下的所有评论，返回生成器
        :rtype: Comments.Iterable