摘要: python int类型转换为字节如下,参考官方类库文档: int.to_bytes(length, byteorder, *, signed=False) 返回表示一个整数的字节数组。 >>> (1024).to_bytes(2, byteorder='big') b'\x04\x00' >>> 阅读全文
posted @ 2020-01-02 16:33 远洪 阅读(9468) 评论(0) 推荐(0)