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