python 字符串替换

 

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

输出

'tea for two'

 

posted @ 2018-11-22 20:32  anobscureretreat  阅读(209)  评论(0编辑  收藏  举报