Fastest implementation to do multiple string substitutions in Python

后端 未结 3 521
攒了一身酷
攒了一身酷 2020-12-14 23:30

Is there any recommended way to do multiple string substitutions other than doing replace chaining on a string (i.e. text.replace(a, b).replace(c, d).repl

3条回答
提交回复
热议问题