Python【每日一问】10

问:请解释一下迭代器

答:可以被 __next__() 函数调用并不断返回下一个值的对象称为迭代器:Iterator

posted on 2019-04-23 12:11  D小调的微笑  阅读(118)  评论(0编辑  收藏  举报