for循环内部作用

for循环内部作用:

1.调用可迭代对象的iter方法返回一个迭代器对象

2.不断调用迭代器对象的next方法

3.处理StopIteration

posted @ 2018-01-23 21:56  秦艳莉  阅读(159)  评论(0编辑  收藏  举报