python统计文本词频 import jiebafrom collections import Counterdata_ = jieba.cut(text)data = dict(Counter(data_))data2 = sorted(data.items(), key=lambda x: x[1], reverse=True)data2[:10] python数据分析 2023-08-09 48 点赞 0 评论 72 浏览