我测试了这个正则表达式,它发现 / 没有问题的性格。
/
那为什么这句话不能代替那个角色呢?
import re str = 'bla / bla / bla' str = re.sub(r'/\//g', ' - ', str)