2018-12-13
2018-12-28 本文已影响0人
orca123456
替换字符 replace
_string = 'hello world'
new_string = _string.replace('hello', 'world')
print(new_string)
替换字符 replace
_string = 'hello world'
new_string = _string.replace('hello', 'world')
print(new_string)