- Generator function: yield keyword
- Generator expression
iterator
Python 入门:第13课 – Loops – Iterable Vs Iterator
- Iterable – for-each-item-loop
- Iterator – get next item in a collection using next()
- Conversion: Iterable to Iterator using iter()
愚者千虑,必有一得