求解答,实在是不知道咋做。定义打印斐波那契数列前n项值,并能返回第n项值的函数。
def get(n): n=int(input('input "n":')) a, b = 1, 1 while b<n: a, b = b, a+b print('{}'.format(a)) return b