为啥最后print那里不用加括号一直没搞懂
def count():
fs = []
for i in range(1, 4):
def g():
return i*i
fs.append(g())
return fs
f1, f2, f3 = count()
print f1, f2, f3
def count():
fs = []
for i in range(1, 4):
def g():
return i*i
fs.append(g())
return fs
f1, f2, f3 = count()
print f1, f2, f3
2016-08-01
举报