第一种表示方式 Count 次数 from sklearn.feature_extraction.text import CountVectorizer corpus = [ 'This is the first document . ', 'this document is the second document.', 'the last one' ] vectorizer = CountVectorizer() vectorizer.fit_transform(corpus