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

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

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

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

print(chunks)