Iteration count in python?

前端 未结 2 961
被撕碎了的回忆
被撕碎了的回忆 2021-01-11 11:38

Let\'s say I have a list of tuples l, and I do something like this:

for (a,b) in l:
     do something with a,b, and the index of (a,b) in l

2条回答
提交回复
热议问题