标签:pytho except ext exce print int range exception cep
使用next函数
it = iter(range(10))
for i in it:
try:
next(it)
next(it)
print(i)
except Exception as e:
pass
标签:pytho except ext exce print int range exception cep
原文地址:https://www.cnblogs.com/yjybupt/p/13140016.html