这样改为什么不行
def count():
fs = []
for i in range(1, 4):
def f(a):
return a*a
c=f(i)
fs.append(c)
return fs
f1, f2, f3 = count()
print f1(), f2(), f3()
def count():
fs = []
for i in range(1, 4):
def f(a):
return a*a
c=f(i)
fs.append(c)
return fs
f1, f2, f3 = count()
print f1(), f2(), f3()
2015-10-30
举报