这样也可以成功,哈哈,不服来战
def count():
fs = []
for i in range(1, 4):
def f(g=i):
return g*g
fs.append(f)
return fs
f1, f2, f3 = count()
print f1()
print f2()
print f3()
def count():
fs = []
for i in range(1, 4):
def f(g=i):
return g*g
fs.append(f)
return fs
f1, f2, f3 = count()
print f1()
print f2()
print f3()
2020-02-10
举报