📅  最后修改于: 2022-03-11 14:46:11.892000             🧑  作者: Mango
import re
#a string
str = '63__foo,,bar,_mango_,apple'
#split string into chunks
chunks = re.split('[_,][_,]',str)
#print chunks
print(chunks)