By - lmypersonPosted on 2025年7月11日Posted in 笔记python遍历数组获取下标通过枚举实现 a = [1,2,3,4,5,6] for i,j in enumerate(a): print(i,j) 0 0