# 迭代器,具有__next__方法,并逐一向后取值li = [11,22,33]obj = iter(li)obj.__next__()# 可迭代对象,具有__iter__方法,返回迭代器li = list([11,22,33])迭代器 = li.__iter__()# 生成器,函数中具有yield关键字__iter____next__# 迭代器 = iter(obj)