python中拆分字符串
时间:2021-05-04 15:23:41
收藏:0
阅读:0
python中拆分字符串
1、
>>> test1 = "abxcdxefxfh"
>>> test1
‘abxcdxefxfh‘
>>> test1.split(sep = "x")
[‘ab‘, ‘cd‘, ‘ef‘, ‘fh‘]
评论(0)