Python - Python3 编程第一步 Fibonacci series: 斐波纳契数列
# Fibonacci series: 斐波纳契数列# 两个元素的总和确定了下一个数a,b = 0,1while b < 10: a, b = b, a + b print("b=",end=" ")# end="" 关键字让输出结果不换行 print(b) print("a=",end=" ") print(a) #a = b #b = a