值得注意的是,可以搭配for loop 的object,不需要一定是Iterator,Iterable 就可以了。 接下來要示範如何在自己的class 中實作 __iter__ , __next__ 和 ...
確定! 回上一頁