python---打印斐波拉契数列 1 1 2 3 5 8 13 21 34 55

a,b,c,i = 1,0,0,0
a=1
b=0
c=0
i=0
while i<10:
c=a+b
a=b
b=c
i+=1
print(c)
posted @ 2021-01-07 14:02  墨色涵烟  阅读(738)  评论(0编辑  收藏  举报