python iter迭代器

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

猜你喜欢

转载自www.cnblogs.com/wanderingfish/p/10777763.html