第25744题 单选题
判断回文数的程序代码横线处应填入的语句是?

回文数是指所有数字倒序排列后数值大小不变的数,例如101、6886是回文数,100不属于回文数。现有如下判断回文数的代码:

n = int(input())
a = 0
k = n
while n > 0:
    a = __________ # 在此处填写代码
    n //= 10

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