what is the output of this code?
a=[1,2,3,4]
b=[]
c=iter(a)
while (a!=b):
n=next(c)
b.append(n)
print(b)
答案是 [1,2,3,4]
iter是過濾器嗎?
這個答案是怎么來的?
uj5u.com熱心網友回復:
是迭代器,不是過濾器
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/80747.html
上一篇:python里=與is的小問題
下一篇:怎么就散黃了呢?
