python 字符串替换

 'tea for too'.replace('too', 'two')

输出

'tea for two'

原文地址:https://www.cnblogs.com/sea-stream/p/10003735.html