replace(old,new,max_times)
re.sub(pattern, repl, string, count=0, flags=0)
repl:替换的字符串
string:被替换的字符串
python文本替换方法
猜你喜欢
转载自blog.csdn.net/weixin_45970042/article/details/105876850
今日推荐
周排行