斐波那契数列-python

a = 0
b = 1
arr = [a, b]
for i in range(10):
c = a + b
arr.append(c)
a, b = b, c
print(list(arr))
posted @ 2020-09-02 17:26  LastOneBlackHole  阅读(65)  评论(0编辑  收藏  举报