加载停用词 stopwords = [] with open("./stopwords.txt","r",encoding="utf-8") as f: linse = f.readlines() print(linse) for tmp in linse: line = tmp.strip() print(line) stopwords.append(line) staticmethod = list(set(stopwords)) print(stopwords)