📜  跳过循环项目 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.435000             🧑  作者: Mango

代码示例1
ls = ["a", "b", "c"]

for index, item in enumerate(ls):
    # if index == 2:
        print(index)
        print(item)