def count_comment(self, comment: models.Comment):
self.all_count += 1
self.sum_score += comment.score
if comment.is_high_praise():
self.good_count += 1
if comment.is_mediu_evaluation():
self.mid_count += 1
if comment.is_bad_comment():
self.bad_count += 1
评论列表
文章目录