# 斐波拉契数列的计算,输出不大于 1000 的序列元素
# @ref 2017.Python语言程序设计基础.第2版.嵩天, p19
# @author Notus(hehe_xiao@qq.com), 2021.05.21
# @update: 2021.05.21
a, b = 0, 1
while a < 1000:
print(a, end = ', ')
a, b = b, a + b
标签:21,2021.05,波拉,数列,xiao,Day025,1000
来源: https://www.cnblogs.com/leo1875/p/14792174.html