python 統計中文詞頻

import jieba excludes = {"男生"} txt = open("高中值日狀況彙總(4).txt", "r", encoding="gbk").read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: continue else:
相關文章
相關標籤/搜索