摘要: file = open('song.txt', 'r') # 只读打开文件 lyrics = file.read() # 读取文件内容 file.close() # 关闭文件资源 sep=''',.?!:'-''' for c in sep: song = song.replace(c,'') wordList = song.lower().split() wordDict={}... 阅读全文
posted @ 2018-03-26 16:47 113杨链新 阅读(109) 评论(0) 推荐(0) 编辑