题海让大学四年没有难题
白天模式登陆

题目详情

单选题 阅读下面一段程序: from nltk.corpus import stopwords import nltk sentence = 'Life is short,you need Python.' words = nltk.word_tokenize(sentence) stop_words = stopwords.words('english') remain_words = [] for word in words: if word not in stop_words: remain_words.append(word) print(remain_words) 执行上述程序,最终输出的结果为( )

A. ['Life', 'short', ',', 'need', 'Python', '.']

B. ['Life', 'short', ',', 'you' ,'need', 'Python', '.']

C. ['Life', 'short', 'need', 'Python',]

D. ['Life', 'is', 'short', ',', 'need', 'Python', '.']

商务数据分析与应用课程封面

学科:商务数据分析与应用

时间:2024-01-12 01:00:49

Copyright © 2022 津ICP备2021001502号