Replace length of byte object with the first two bytes of the object in python

后端 未结 0 457
梦谈多话
梦谈多话 2021-01-15 16:22

I have an byte object such as b"\\x07\\x08\\x35\\x78\\x50\\x61" and it\'s length is 6. I want to replace lenght with the first two bytes and the output is should b

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