请有人为我解释一下下面代码中最后3行的成员测试的行为,为什么是False?为什么迭代器和可迭代对象的成员测试不同?
c = [1,2,3,4,5,6,7,8,9,10,11,12]
print(3 in c) # True
print(3 in c) # True
d = iter(c)
print(2 in d) # True
print(4 in d) # True
print(4 in d) # False ???
print(6 in d) # False ???
print(10 in d) # False ???
[]
。 - user3483203