第14086题 单选题
补全判断正整数各数位均为偶数的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 }}%
答案解析