Replace all occurrences of the substring in string with string slicing

前端 未结 0 708
庸人自扰
庸人自扰 2020-12-06 15:04

I want to replace all substring occurrences in a string, but I wish not to use the replace method. At the moment, experiments have led me to this:

def count_s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题