随便试了一下尽然过了,是不是有问题
def count():
fs = []
for i in range(1, 4):
def f():
return i**2
fs.append(f())
return fs
f1, f2, f3 = count()
print f1, f2, f3
def count():
fs = []
for i in range(1, 4):
def f():
return i**2
fs.append(f())
return fs
f1, f2, f3 = count()
print f1, f2, f3
2016-06-19
举报