第40574题 单选题
下面Python代码用于实现十进制到M进制(M为二进制到十六进制)的转换,横线处应填入代码是 ( )。
N = int(input("请输入正整数: "))
M = int(input("请输入转换进制,不能大于16: "))
Alpha="0123456789ABCDEF"

rst = "" #保存转换结果
while N != 0:
    Remainder = N % M #Remainder表示余数
    ________________________
    N = N // M
print(rst)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析