迭代器协议 Iterator protocol

Python 的逐项读取契约:iter() 取得迭代器,next() 持续返回数据项,直至 StopIteration 表示耗尽。

别名 iteration-protocol

用到的主题