第40527题 判断题
在下列 Python 代码中,如果 N 和 M 均输入大于 0 的整数,则可以取得正整数 N 的从右到左第 M 位置的 数。个位数为第 1 位置,M 不大于 N 的位数。
N = int(input("请输入正整数:"))
M = int(input("从右到左第几位?"))

print(N // (10 ** (M - 1)) % 10)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析