摘要: def getText(): txt = open("hamlet.txt", "r").read() txt = txt.lower() for ch in '!"#$%&()*+,-./:;<=>?@[\\]^_‘{|}~': txt = txt.replace(ch, " ") #将文本中特殊 阅读全文
posted @ 2020-04-19 20:36 Judy-dd 阅读(360) 评论(0) 推荐(0) 编辑