python中拆分字符串
python中拆分字符串
1、
>>> test1 = "abxcdxefxfh"
>>> test1
'abxcdxefxfh'
>>> test1.split(sep = "x")
['ab', 'cd', 'ef', 'fh']
python中拆分字符串
1、
>>> test1 = "abxcdxefxfh"
>>> test1
'abxcdxefxfh'
>>> test1.split(sep = "x")
['ab', 'cd', 'ef', 'fh']