weixin_39829501的博客我当前的代码将句子拆分,但不将单词存储为列表。我该怎么做?12345678910def split_line(text):# split the textwords = text.split()# for each word in the line:for word in words:# print the wordpri...
cunchi4221的博客We can convert a string to ... 我们可以使用split()函数将字符串转换为Python中的列表。 Python String split() function syntax is: Python字符串split()函数语法为: str.split(sep=None, maxsplit=-1)...