第40855题 判断题
下列 Python 代码能够正确统计出所有能被 3 整除且至少包含一个数字 5 的四位数的个数。( )
count = 0
for num in range(1000, 10000):
    if num % 3 == 0:
        digits = [int(d) for d in str(num)]
        if 5 in digits:
            count += 1
print(count)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析