2018-12-13

2018-12-28  本文已影响0人  orca123456

替换字符 replace

_string = 'hello world'
                new_string = _string.replace('hello', 'world')
print(new_string)
上一篇 下一篇

猜你喜欢

热点阅读