多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` import jieba file = open('三国演义.txt') txt = file.read() txt1 = "我是小学生我是小学生" lst1 = jieba.lcut(txt1) lst = jieba.lcut(txt) #print(lst) #print(len(lst)) #result = [word for word in lst] #print(result) print(lst1) counts = {} for word in lst: if len(word) == 1: continue else: counts[word] = counts.get(word,0) + 1 print(counts) print(len(word)) for k in counts: if counts[k] >200: print(k,counts[k]) ```