Change the byte-length of an int represented as a byte

前端 未结 0 1310
故里飘歌
故里飘歌 2021-02-06 05:50

Right now to achieve this, I\'m doing:

int.from_bytes(number, \'little\').to_bytes(bit_len, \'little\')

Ma

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