题解 | #兔子的数量#
兔子的数量
https://www.nowcoder.com/practice/8783056676de4396b0bf816a3561d62f
def fun(n): if n == 1: return 2 elif n ==2: return 3 elif n >2 and n <10: return fun(n-1)+fun(n-2) else: return f"no such key for {n}" print(fun(int(input())))
#需要考虑题目中给出的信息