content.replace(old, new[, max])
例如:
content=content.replace("<br>", "\n")
content = content.replace("\n", "\t").replace("\t", " ")
print(content)
参考:
https://www.runoob.com/python/att-string-replace.html
https://www.jb51.net/article/170153.htm
相关:
相似查询
浏览:204
内容: content.replace(old, new[, max]) 例如: content=content.replace("<br>", "\n") content = content.replace("\n", "\t").replace("\t", " ") print(content) 参考: https://www.runoob.com/python/att-string-replace.html https://www.jb51.net/article/170153.htm
链接:
分解查字
|