如何在Python中将二进制字符串转换为相应的十六进制值?
我有0000 0100 1000 1101,我想让048D我使用Python 2.6.
0000 0100 1000 1101
048D
python binary hex
binary ×1
hex ×1
python ×1