python 写斐波那契数列

在这里插入图片描述

在这里插入图片描述

下面的a , b = b , a+b是用的列表
等价于[a,b] = [b,a+b]

原文地址:https://www.cnblogs.com/HBU-xuhaiyang/p/12776026.html