迭代器在Python中無處不在. ... create an iterator object from that iterable iter_obj = iter(iterable) # infinite loop while ... 在Python中構建自己的Iterator.
確定! 回上一頁