下面的程序是什么问题:def count():fs = []k=0for i in range(1, 4):def f(j):def g():return j*jreturn gr=f(i)k=r()fs.append(k)return fsf1= count()print f1()解释结果:Traceback (most recent call last):File "index.py", line 15, in print f1()TypeError: 'int' object is not callable
添加回答
举报
0/150
提交
取消