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

后端 未结 0 778
后悔当初
后悔当初 2021-02-19 15:40

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         


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