#!/usr/bin/python3 list=[1,2,3,4] it = iter(list) # 创建迭代器对象 for x in it: print (x, ... __next__() 方法(Python 2 里是next())会返回下一个迭代器对象。
確定! 回上一頁