错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Generators and Iterators

  • Alex Vasilev

摘要

In this chapter, you become familiar with generators and iterators. An iterator is a special object that allows you to iterate over a collection. A generator is a particular iterator. So, in any case, you deal with iterating over collections. Let’s start with the more straightforward issue: the generator.