正在加载图片...
Iterators A container can provide an iterator that provides access to its elements in order iter(iterable):Return an iterator over the elements of an iterable value V >>5=[3,4,5] >>t iter(s) next(iterator):Return the next element in an iterator >>next(t) 3 nIterators 4 A container can provide an iterator that provides access to its elements in order iter(iterable): next(iterator): Return an iterator over the elements of an iterable value Return the next element in an iterator >>> s = [3, 4, 5] >>> t = iter(s) >>> next(t) 3
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有