python实现统计文本中单词出现的频率
#coding=utf-8import osfrom collections import Countersumsdata=[]for fname in os.listdir(os.getcwd()): if os.path.isfile(fname) and fname.endswith('.txt'): with open(fname,'r') as fp:...