我想问问那个fs中的元素存的是f还是g?还是说f(i)就是g?
def count(): fs = [] for i in range(1, 4): def f(i): def g(): return i*i return g fs.append(f(i)) return fs f1, f2, f3 = count() print f1(), f2(), f3()
我想问问那个fs中的元素存的是f还是g?还是说f(i)就是g?
def count(): fs = [] for i in range(1, 4): def f(i): def g(): return i*i return g fs.append(f(i)) return fs f1, f2, f3 = count() print f1(), f2(), f3()
我想问问那个fs中的元素存的是f还是g?还是说f(i)就是g?
2015-08-10
举报