📜  在 python 代码示例中用逗号分割字符串

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

代码示例1
str = 'apple,orange,grape'

#split string by ,
chunks = str.split(',')

print(chunks)