Python《红楼梦》人物出场统计

import jieba txt = open ("红楼梦.txt","r",encoding='utf-8').read() words =jieba.lcut(txt) counts ={} for word in words: if len(word) ==1: #排除单个字符的分词结果 continue else: counts[word
相关文章
相关标签/搜索