n=int(input("请输入n,我们将给出斐波那契额数列前n项")) a, b = 1, 1 print(a,b,sep=",",end=",") for i in range((n -2)//2): a=a+b b=a+b print(a,b,sep=",",end=",") if n%2==1: print(a+b)


原文地址: https://www.cveoy.top/t/topic/eM58 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录