第40490题 单选题
某个功能需要知道一个输入的正整数的各位数字中有多少个奇数,下面的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 }}%
答案解析