Python how to convert a string to bytes or bytearray as a b'\x..\x..\x..' format

后端 未结 0 1664
离开以前
离开以前 2021-02-19 15:39

Can you help me guys, i am beginner in Python and trying to deal with bytes. I would like to convert a 24 lengths string to 12 lengths bytes.

string = "19022         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题