我正在使用Python3.2.我需要将十六进制流作为输入并在位级解析它.所以我用过
bytes.fromhex(input_str)
将字符串转换为实际字节.现在我如何将这些字节转换为位?
python hex byte bits
bits ×1
byte ×1
hex ×1
python ×1