for 循环内部做了三件事
1调用对象iter()方法,返回迭代器对象
2while :
try:
i=next(list_Iteratior) 调用next() 然后通过while循环 最后异常捕捉
except StopIteration:
break
for 循环
原文:https://www.cnblogs.com/yeyouling/p/9944396.html