0
点赞
收藏
分享

微信扫一扫

python获取当前遍历次数


for idx,item in enumerate(list):


  如楼上代码所示,print(idx)即可

举报

相关推荐

0 条评论