1个回答
展开全部
@echo off
set /p "hex=请输入十六进制数字:"
set bin=%hex:0x=%
set bin=%bin:0=0000%
set bin=%bin:1=0001%
set bin=%bin:2=0010%
set bin=%bin:3=0011%
set bin=%bin:4=0100%
set bin=%bin:5=0101%
set bin=%bin:6=0110%
set bin=%bin:7=0111%
set bin=%bin:8=1000%
set bin=%bin:9=1001%
set bin=%bin:A=1010%
set bin=%bin:B=1011%
set bin=%bin:C=1100%
set bin=%bin:D=1101%
set bin=%bin:E=1110%
set bin=%bin:F=1111%
echo 十六进制数:%hex% 转为二进制是:%bin%
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询