如何用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  阅读(160)  评论(0编辑  收藏  举报
返回顶端