import nltk Freq_dist_nltk = nltk.FreqDist(list) for k,y in Freq_dist_nltk: print str(k),str(y) 转载于:https://www.cnblogs.com/pxfb/p/9430466.html