📜  re python split() - Python 代码示例

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

代码示例1
s_comma = 'one,two,three,four,five'

print(s_comma.split(','))
# ['one', 'two', 'three', 'four', 'five']

print(s_comma.split('three'))
# ['one,two,', ',four,five']