python使用正则,替换多个字符串,切分多个字符串,字符串多个替换,
时间:2019-11-27 11:21:56
收藏:0
阅读:451
1分隔一个用 str.split() 分隔多个字符串 re.split(‘,|;|:‘,str)
2替换一个 str.replace() 替换多个 re.sub(r"[‘’“”ˇ\n\s,。]*", "", text)
原文:https://www.cnblogs.com/jackduan/p/11940376.html
评论(0)