第18504题 单选题
Python递归实现斐波那契数列的空白处正确代码是?
def func(num):
    if num==1:
        return 1
    elif num==2:
        return 1
    else:
        # 空白处
lst=[]
b=input('请输入选择的数字:')
b1=int(b)
for a in range(1,b1+1):
    print(func(a))
    lst.append(func(a))
    a+=1
print(lst)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析