How can I turn a hex value as bytes in python

后端 未结 0 1484
自闭症患者
自闭症患者 2020-12-04 20:53

I have a string in a python script

0x401e4b and I would like to convert it to \\x4b\\x1e\\x40 as a string.

I have converted it to int

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