lannn_l

2020年11月15日

jieba

摘要: import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for word in 阅读全文

posted @ 2020-11-15 00:11 lannn_l 阅读(90) 评论(0) 推荐(0) 编辑

导航