bytes_object = [0xAA, 0xAB, 0x11]
w = " ".join("%02x" % b for b in bytes_object)
print(w)
输出结果:aa ab 11