2019-06-05 怎么处理wireshark抓到的包

>>> "才".encode("utf-8")
b'\xe6\x89\x8d'

>>> "里hi".encode("utf-8")
b'\xe9\x87\x8chi'

>>> cc.decode("utf-8")
'里hi'

>>> bytes.fromhex("e88f9c").decode("utf-8")
'菜'

>>> b'\x70\x72\x6f\x63'
b'proc'

b'\x70\x72\x6f\x63'.decode("utf-8")

>>> bytes.fromhex('70726f63')
b'proc'

>>> bytes.fromhex('01480000020650303130303239313500')
b'\x01H\x00\x00\x02\x06P01002915\x00'
>>> bytes.fromhex('01480000020650303130303239313500').decode("utf-8")
'\x01H\x00\x00\x02\x06P01002915\x00'

你可能感兴趣的:(2019-06-05 怎么处理wireshark抓到的包)