第18439题 单选题
计算给定Python程序的输出结果

以下程序执行的结果是?

a=0
b=5
Sum=0
for i in range(3):
    if a>0:
        Sum+=a
        a+=1
    elif b>1:
        Sum+=b
    a+=1
    b+=1
print(Sum)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析