【发布时间】:2014-05-20 09:43:51
【问题描述】:
我不明白为什么这段代码不起作用。当我单击运行时,它显示“删除停用词后:无”。任何人都可以帮助解决问题吗?非常感谢。
stop_words = ["the", "of", "a", "to", "be", "from", "or"]
last = lower_words.split()
for i in stop_words:
lastone = last.remove(i)
print "\nAAfter stopwords removal:\n",lastone
【问题讨论】:
标签: python stop-words