📜  将文本中的单词分开以创建列表 python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.902000             🧑  作者: Mango

代码示例1
your_text = "some text"
separated_text = your_text.split(" ") #the space is just an exemple but you can put anything
print(separated_text)

output:
['some', 'text']