Python作业:jieba库
摘要:
运用jieba库统计词频,并对词频进行排序 import jieba txt = open("文章.txt","r",encoding='gbk',errors='replace').read() words = jieba.lcut(txt) counts = {} for word in wor 阅读全文
posted @ 2020-04-18 11:02 幻锁 阅读(157) 评论(0) 推荐(0) 编辑