Simple “counter” in Python

前端 未结 0 1552
-上瘾入骨i
-上瘾入骨i 2021-01-03 20:22

I need to make a simple \'counter\' in Python for a project. I need to count in a list like:

[0,0,0,0]
[1,0,0,0]
[1,1,0,0]
[2,1,0,0]
[1,1,1,0]
[2,1,1,0]
[2,2,         


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