摘要: file=open('song.txt','r',encoding='utf-8') str=file.read() # 将文章里的标点符号替换为空格 wordList =str.lower().split() # 将数组变成一个个个单词 sep=''',.'"?!:''' word = ['it', 'you', 'a', 'and', 'for', 'on', 'the 阅读全文