问题:python str to hex
方法:
str to hex
hex_str = binascii.hexlify(str.encode('utf-8')).decode('utf-8')
hex to str
str = binascii.unhexlify(hex_str.encode('utf-8')).decode('utf-8')
参考:
https://blog.csdn.net/weixin_42902669/article/details/90754498
问题:python str to hex
方法:
str to hex
hex_str = binascii.hexlify(str.encode('utf-8')).decode('utf-8')
hex to str
str = binascii.unhexlify(hex_str.encode('utf-8')).decode('utf-8')
参考:
https://blog.csdn.net/weixin_42902669/article/details/90754498