An iterator is any object in Python which has a next (Python2) or __next__ method defined. That's it. That's an iterator. Now let's understand iteration.
確定! 回上一頁