詞雲--《紅樓夢》--jieba庫--wordcloud庫

《紅樓夢》 1.人物出場統計 import jieba f=open('F:/2級python/test/T10/sucai/紅樓夢.txt','r',encoding='utf-8') txt=f.read() f.close() words=jieba.lcut(txt) counts={} for word in words: if len(word)==1: con
相關文章
相關標籤/搜索