摘要: import jieba txt = open("《西游记》.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for word 阅读全文
posted @ 2020-11-14 23:14 flow-laic 阅读(514) 评论(0) 推荐(0) 编辑