第25838题 单选题
以下Python判断对称数的代码中,横线处应填入的内容是?

在以下 Python 代码中,横线应填入( )。

# 判断N是否为对称数,如: 1221
N = int(input("请输入正整数: "))
i = N
res = 0  # 保存结果
while i != 0:
    res ____
    i = i // 10
if res == N:
    print(f"{N}是对称数")
else:
    print(f"{N}不是对称数")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析