python bytes.fromhex()

如果我们想把'abcdef'转成b'\xab\xcd\xef',可以使用bytes.fromhex()

bytes.fromhex('abcdef')
posted @ 2023-06-14 14:48  秋来叶黄  阅读(266)  评论(0编辑  收藏  举报