count()的返回值不是一个列表吗,怎么f1f2f3不是[1,4,9]而是9呢
def count(): fs = [] for i in range(1, 4): def f(): return i*i fs.append(f) return fs f1, f2, f3 = count()
def count(): fs = [] for i in range(1, 4): def f(): return i*i fs.append(f) return fs f1, f2, f3 = count()
2018-09-16
举报