第13335题 单选题
递归求阶乘的Python代码横线处应填写什么内容?

阶乘是一个数与所有小于它的正整数的乘积。例如,5的阶乘(写作5!)是5 4 3 2 1 = 120。以下是用递归方法编写求阶乘的Python代码,横线处应填写正确的Python代码:

def fun(n):
    if n == 1:
        return 1
    else:
        return ________
print(fun(5))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析