詞頻統計 兩種實現方法 第一種:vocab = dict(Counter(text).most_common(MAX_VOCAB_SIZE-1)) 舉例: from collections import Counter ...