>>> E=enumerate('spam') >>> E <enumerate object at 0x1021ceca8> >>> I=iter(E) >>> next(I) (0, 's') >>> next(I) (1, 'p') >>> list(enumerate('spam')) [(0, 's'), (1, 'p'), (2, 'a'), (3, 'm')]
next(I)和I__next__()效果相同。
next(I)
I__next__()