替换字符 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)
本文标题:2018-12-13
本文链接:https://www.haomeiwen.com/subject/zizbhqtx.html
网友评论