Count consecutive 1

后端 未结 0 1899
被撕碎了的回忆
被撕碎了的回忆 2021-01-11 13:04

I have an assignment where I am to count the occurrences of consecutive 1:s in a sequence. This is where I\'m at. Why doesn\'t this work?

def count11(seq):
x          


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