实现对Hamlet的文本词频统计

代码以下:python #CalHamletV1.py def getText():     txt=open("hamlet.txt","r").read()     txt=txt.lower()     for ch in '!"#%&()*+,-./:;<=>?@[\\]^_{|}·~''':         txt=txt.replace(ch,"")     return txtorm
相关文章
相关标签/搜索