把函数给一个变量是什么意思?
iter类的函数可以被赋值
def func():
for i in range(10):
yield i
f = func()
while True:
try:
print(next(f))
except:
break