简单po一段代码 # coding=gbk
'''
ten=12
sixteen=hex(ten)
print(sixteen)
print(eval(sixteen))
print(int("2f",16))随着后面的数字变化 分别为 2 8 10 16进制转化
'''
ff=open ('dq.txt','a+')
#转化hex to 4个bin
def ht4(s):
a3 = s % 2
d = s // 2
a2 = d % 2
d = d // 2
2022-05-03 12:40:47
5KB
网络
1