第10783题 单选题
统计正整数各位奇数个数的Python代码横线处应填入以下哪项?

实现统计输入正整数各位数字中奇数个数的Python代码如下:

N = int(input())
odd_count = 0 #记录奇数的个数
old_number = N #保存原数
while N != 0:
    if ____________:
        odd_count += 1
    N = (N - N % 10) // 10
print(f"{old_number}中共有{odd_count}个奇数")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析