📜  python 拆分列表 - Python 代码示例

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

代码示例5
string = "this is a string"         # Creates the string
splited_string = string.split(" ")    # Splits the string by spaces
print(splited_string)                 # Prints the list to the console
# Output: ['this', 'is', 'a', 'string']