This is exactly the python iterator protocol, just that a generator creates values lazily. So you can, of course, use it in a for loop naturally ...
確定! 回上一頁