count the highest consecutive occurrence of a string in Python

前端 未结 0 1495
面向向阳花
面向向阳花 2020-12-01 16:14

how can I find the number of the max occurrences of a string in python? for example if string s is :

s="**hellohellohello**applefruitcat**hellohello**lio         


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