第41167题 单选题
下面Python代码执行后输出与5有关数的数量。与5有关的数定义为含有5或者能被5整除的数。相关说法正确的是( )。
cnt = 0
for i in range(1,1000):
    if i % 5 == 0:
        cnt += 1
        continue
    j = i
    while j > 0:
        if j % 10 == 5:
            cnt += 1
            break
        else:
            j //= 10
print(cnt)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析