You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pvkr9esfn 5165b23007
Update README.md
4 years ago
README.md Update README.md 4 years ago

README.md

def fun(n): if n <= 2: return 1 else: return 2*(fun(n - 1) + fun(n - 2)) a = int(input('请输入月份:')) # 获取输入的月数 b = round(fun(a - 1) / fun(a),3) # 计算前一个月与本月兔子数量的比值 log = fun(a) print(log,'%.3f'% b)