阅读背景:

python 替换单个或多个字符_Wily_Zhao的博客_python替换单独字符

来源:互联网 
title = "img name 。end,six  ?"

cx = title.replace(" ", "_").replace(",", "_").replace("。", "_")
print(cx)

结果:

img_name__end_six__?title = "img name 。end,six  ?"

cx = title.repl



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: