python进制转换华为机试
2020-05-23 本文已影响0人
山高水长路悠悠
题目描述
写出一个程序,接受一个十六进制的数,输出该数值的十进制表示。(多组同时输入)
思考:1.多组同时输入怎么处理
2.16进制转换成10进制的方法
int函数用法
https://www.runoob.com/python/python-func-int.html

题目描述
写出一个程序,接受一个十六进制的数,输出该数值的十进制表示。(多组同时输入)
思考:1.多组同时输入怎么处理
2.16进制转换成10进制的方法
int函数用法
https://www.runoob.com/python/python-func-int.html