while True:
try:
a = 1
b = 0
c = input('请输入一个数字:')
c = eval(c)
for i in range(c):
e1 = int(i)
w = ((15 + 4 * 14**0.5) ** (2 * e1 + 1) + (15 - 4 * 14**0.5) ** (2 * e1 + 1)-30)/224
print(format(w))
except:
print("错误")
exit()
try:
a = 1
b = 0
c = input('请输入一个数字:')
c = eval(c)
for i in range(c):
e1 = int(i)
w = ((15 + 4 * 14**0.5) ** (2 * e1 + 1) + (15 - 4 * 14**0.5) ** (2 * e1 + 1)-30)/224
print(format(w))
except:
print("错误")
exit()
[此贴子已经被作者于2023-2-8 15:05编辑过]