File objects in Python are implemented as iterators. As you loop over a file, ... So our __iter__ function must return an iterator.
確定! 回上一頁