📌  相关文章
📜  python 将十六进制转换为二进制 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.087000             🧑  作者: Mango

代码示例2
my_hexdata = "1a"

scale = 16 ## equals to hexadecimal

num_of_bits = 8

bin(int(my_hexdata, scale))[2:].zfill(num_of_bits)