如何用lambda 优化下面代码
def count():
fs = []
def f(n):
def j():
return n * n
return j
for i in range(1, 4):
fs.append(f(i))
return fs
f1, f2, f3 = count()
PPPoE
9 years, 4 months ago