关于斐波那契数列,下列空白处的代码填写正确的是?( )
def func(num): if num==1: return 1 elif num==2: return 1 else: lst=[] b=input('请输入选择的数字:') b1=int(b) for a in range(1,b1+1): print(func(a)) lst.append(func(a)) a+=1 print(lst)
return func(num+1)+func(num-2)
return func(num-1)+func(num)
return func(num-1)+func(num-2)
return func(num-1)+func(num+2)