求斐波那契数列
求问代码错在哪里
class Fib(object):
def __init__(self,num):
self.number = num
a,b,L = 0,1,[]
for i in range(num):
L.append(a)
a,b = b,a+b
return self.number
def __call__(self,num):
return L
f = Fib()
print f(10)