函数运行求指教
class Fib(object):
def __call__(self,num):
a,b,L=0,1,[]
for n in range(num):
L.append(a)
a,b=b,a+b //这块是怎么运行,怎样向list中插入值的
return L
class Fib(object):
def __call__(self,num):
a,b,L=0,1,[]
for n in range(num):
L.append(a)
a,b=b,a+b //这块是怎么运行,怎样向list中插入值的
return L
2016-06-01
举报