第25772题 单选题
补全判断正整数各数位是否均为偶数的Python代码

以下Python代码用于判断一个正整数N的各个数位是否均为偶数,例如输入N=2024时输出“是”,否则输出“否”,请补全代码中横线处的内容:

N = int(input("请输入一个正整数:"))

Flag = True
while N != 0:
    if N % 2 != 0:
        Flag = False
        _______________
    else:
        N //= 10

if Flag == True:
    print("是")
else:
    print("否")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析