如何用Python输出一个斐波那契Fibonacci数列

a,b = 0, 1
while b<100:
    print (b),
    a, b = b, a+b

猜你喜欢

转载自www.cnblogs.com/apollo1616/p/9776116.html