例如:str ="this is string example.wow!";print(str.replace("is","was"))
替换后的字符串结果是'thwas was string example.wow! '还是thwas was string example.wow!
替换后数据类型还是字符串类型,所以还是带有' '的。只是我们打印出来是看不到而已
'thwas was string example.wow! '打印是不显示“”
不需要