def fib(n): # write Fibonacci series up to n
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()
D10
猜你喜欢
转载自www.cnblogs.com/ruhai/p/10664464.html
今日推荐
周排行