python: remove multiple occurrence in a row from a certain character in a string

后端 未结 0 647
傲寒
傲寒 2021-01-17 01:16

I want to remove multiple \'.\' in a row to a single \'.\' in Python.

This is my code, that i come up with:

# remove multiple occurrences of \'.\'
stri         


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