python iter迭代器

  • 迭代器的数据会被取出
a=range(5)
b=iter(a)
list(b) -> [0,1,2,3,4]
list(b)->[]

posted on 2019-04-27 09:57  游荡的鱼  阅读(132)  评论(0编辑  收藏  举报

导航