📌  相关文章
📜  python替换匹配字符串 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:17.995000             🧑  作者: Mango

代码示例2
s = 'one two one two one'

# 1st argument: string to find
# 2nd argument: string to put in place

print(s.replace(' ', '-')) # one-two-one-two-one