摘要: 1 import jieba 2 3 with open('红楼梦.txt', 'r', encoding='utf-8') as f: 4 txt = f.read() 5 6 ls = jieba.lcut(txt) 7 d = {} 8 for w in ls: 9 d[w] = d.get( 阅读全文
posted @ 2021-05-23 14:52 止一 阅读(88) 评论(0) 推荐(0) 编辑