我的答案错在哪?
def count():
fs = []
for i in range(1, 4):
def f(h):
return h*h
fs.append(f(i))
return fs
f1, f2, f3 = count()
print f1(), f2(), f3()
def count():
fs = []
for i in range(1, 4):
def f(h):
return h*h
fs.append(f(i))
return fs
f1, f2, f3 = count()
print f1(), f2(), f3()
2019-12-20
举报