摘要: 1. split # split # rsplit # lsplit 2. re 以多字符串分割字符串 # re模块 import re str1 = 'http://www.baidu.com/news/' re.split('//|\.', str1) # 以 '/', '.' 分割字符串 # 阅读全文
posted @ 2022-06-08 10:44 是阿杰呀 阅读(174) 评论(0) 推荐(0)