12345678910111213141516# -*- coding: utf-8 -*-import sysfrom collections import CounterwordDict = Counter() f = open('talk.txt', 'r')i = open('output.txt', 'w')sentences = f.readlines()for stc in sentences : for word in stc.split() : wordDict[word] += 1for word, freq in wordDict.most_common(80): x = word + '==' + str(freq) + '\n' print word,"::::",freq i.write(x)input() Colored by Color Scripter..