第16709题 判断题
判断以下Python程序运行后打印结果为9的表述是否正确
def f():
    s = 0
    for i in range(3, 1, -1):
        if i <= 1:
            x = 1
        if i <= 2:
            x = 2
        if i <= 3:
            x = 3
        s = s + x
    return s
print(f())
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析