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