1
Kilerd 2017-10-07 16:00:22 +08:00
python regex replace(sub)
|
2
casparchen 2017-10-07 16:36:12 +08:00
如果是这样简单的替换,str.replace()多好
|
3
wzha2008 2017-10-09 11:14:43 +08:00
import re
text = re.sub('yes...', 'yes ...', text) |
4
ptrees 2017-10-10 13:22:51 +08:00
搜 re.sub
|