摘要: hhha = open('hop.txt','r') news = hhha.read() hhha.close() #读取文件 news = news.lower() #转换大小写 for i in ',.': news = news.replace(i,' ') #将,.转换为空格 words 阅读全文
posted @ 2017-09-27 16:01 blackboardf 阅读(189) 评论(0) 推荐(0) 编辑