使用next函数

it = iter(range(10))
for i in it:  try:
    
        next(it)
        next(it)
        print(i)  except Exception as e:
    pass