📅  最后修改于: 2022-03-11 14:46:17.995000             🧑  作者: Mango
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