第25672题 单选题
补全Python代码以获取正整数N从右到左的第M位

下面Python代码用于获得正整数N的第M位数,如N等于1234,M等于2,则输出3。此题假设M的值大于等于1小于等于N的位数。

N = int(input("请输入一个正整数:"))
M = int(input("请输入从右到左取第几位数:"))
div = 10 ** (M - 1)
print(______________)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析