def add_comment(self, answer, content):
from .answer import Answer<EOL>if isinstance(answer, Answer) is False:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if not content:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>data = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': json.dumps({'<STR_LIT>': answer.aid, '<STR_LIT:content>': content}),<EOL>'<STR_LIT>': answer.xsrf<EOL>}<EOL>res = self._session.post(Answer_Add_Comment_URL,<EOL>data=data)<EOL>return res.json()['<STR_LIT:r>'] == <NUM_LIT:0><EOL>
给指定答案添加评论

        :param Answer answer: 答案对象
        :param string content: 评论内容
        :return: 成功返回 True，失败返回 False
        :rtype: bool