python文本统计_基于Python的文本统计
给定任意的文本文件,统计文件中的文字信息。#wordstats.py#包含所有要保留的字符集keep={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' ','-',"'"}def normalize(s):"""将字符串转化成标准字符"...