第17840题 单选题
观察给定Python实现斐波那契数列的递归代码,选出说法错误的选项
def fi(n):
    if n==1 or n==2:
        s=1
    else:
        s=fi(n-1)+fi(n-2)
    return s
a=int(input("请输入a的值:"))
print(fi(a))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析