第25770题 判断题
判断「两段求1-10和的Python代码运行结果相同,且通常for-in循环都可以用while循环实现」的表述是否正确
tnt = 0
for i in range(1, 10 + 1):
    tnt += i
print(tnt)
tnt = 0
i = 1
while i <= 10:
    tnt += i
    i += 1
print(tnt)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析