python 判断一个数是否为斐波那契数

num = int(input("请输入一个整数:")) a = 0 b = 1 i = 0 t = 0 while aa-num: print("{}是距{}最近的斐波那契数".format(a,num)) elif num-t

    推荐阅读