摘要: 1.byte和str互转 b = b"example" s = "example" bytes(s, encoding = "utf8") str(b, encoding = "utf-8") 2.byte和int互转 b=b'\x01\x02' num=int.from_bytes(b,'litt 阅读全文
posted @ 2020-06-24 10:43 Mars.wang 阅读(635) 评论(0) 推荐(0) 编辑