📅  最后修改于: 2022-03-11 14:45:22.020000             🧑  作者: Mango
代码示例1
my_hexdata = "1a"
scale = 16 ## equals to hexadecimal
num_of_bits = 8
bin(int(my_hexdata, scale))[2:].zfill(num_of_bits)