python求斐波那契数列示例分享 复制代码 代码如下:def getFibonacci(num):res=[0,1]a=0b=1for x in range(0,num):if x==a+b:res append(x python编程 2022-04-09 56 点赞 0 评论 84 浏览