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