From d0b92e9625fe673826e78dc5543a33d5fb2dd3f2 Mon Sep 17 00:00:00 2001 From: kpt <2817151932@qq.com> Date: Wed, 3 Jul 2024 21:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90getTopicPageData=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/getTopicPageData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/getTopicPageData.py b/utils/getTopicPageData.py index 37b9455..64ddd5e 100644 --- a/utils/getTopicPageData.py +++ b/utils/getTopicPageData.py @@ -8,7 +8,7 @@ def getTopicLen(topic):# 统计特定话题下的评论数目 topicLen+=1 return topic_len -def getTopicPageCreatedAtCharData(topic):# 统计包含特定热词的评论在每个日期的数量,并返回日期和对应的评论数量 +def getTopicPageCreatedAtCharData(topic):# 统计特定话题的评论在每个日期的数量,并返回日期和对应的评论数量 commentsList = getAllCommentsData() createdAt = {} for i in commentsList: @@ -19,7 +19,7 @@ def getTopicPageCreatedAtCharData(topic):# 统计包含特定热词的评论在 createdAt[i[1]] = 1 return list(createdAt.keys()),list(createdAt.values()) -def getCommentFilterDataTopic(topic):# 筛选包含特定热词的评论并返回这些评论的数据 +def getCommentFilterDataTopic(topic):# 筛选特定话题下的评论并返回这些评论的数据 commentsList = getAllCommentsData() commentData = [] for i in commentsList: