停用词没有被删掉

f = open(r'stop_words.txt','r',encoding="utf-8")
a = list(f)
stopWords = list(f)
for word in stopWords:
if word in wordsDict:
del wordsDict[word] #删除对应的词
wordsDict_seq = sorted(wordsDict.items(),key=lambda x:x[1], reverse=True) #按字典的值降序排序
wordsDict_seq[:100]