text.split()
This should be enough to store each word in a list.
(这应该足以将每个单词存储在列表中。)
words
is already a list of the words from the sentence, so there is no need for the loop. (words
已经是句子中单词的列表,因此不需要循环。)
Second, it might be a typo, but you have your loop a little messed up.
(其次,这可能是一个错字,但是您的循环有点混乱。)
If you really did want to use append, it would be: (如果您确实确实想使用附加,它将是:)
words.append(word)
not
(不)
word.append(words)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…