print("生成前40斐波那契数(Fibonacci)")

# 方法1(an表达式):
# L = [1,1]
# for i in range(38):
# 	L.append(L[-1]+L[-2])

# while len(L) < 40:
# 	L.append(L[-1]+L[-2])

# 方法2(递推数列):
a = 0
b = 1	# 代表第一个数
L = []
while len(L) < 40:
	a, b = b, a + b
	L.append(a)		# 元组思想

print(L)
9490430f5b81707683b6d704646d650e41bac596
<mask token>

print('生成前40斐波那契数(Fibonacci)')
<mask token>
while len(L) < 40:
    a, b = b, a + b
    L.append(a)
print(L)

print('生成前40斐波那契数(Fibonacci)')
a = 0
b = 1
L = []
while len(L) < 40:
    a, b = b, a + b
    L.append(a)
print(L)

print("生成前40斐波那契数(Fibonacci)")

# 方法1(an表达式):
# L = [1,1]
# for i in range(38):
# 	L.append(L[-1]+L[-2])

# while len(L) < 40:
# 	L.append(L[-1]+L[-2])

# 方法2(递推数列):
a = 0
b = 1	# 代表第一个数
L = []
while len(L) < 40:
	a, b = b, a + b
	L.append(a)		# 元组思想

print(L)