如何用Python输出一个Fibonacci数列?

1 a,b = 0, 1
2 while b<100:
3     print (b),
4     a, b = b, a+b
posted @ 2020-12-31 17:42  QC_der  阅读(165)  评论(0)    收藏  举报
返回顶端