相当于php pack的Python

相当于php pack的Python,第1张

相当于php pack的Python

binascii
模块具有
binascii.unhexlify(hexstr)
,它可以满足您的需求

>>> import binascii>>> binascii.unhexlify("A88BE9L98990")Traceback (most recent call last):  File "<stdin>", line 1, in <module>TypeError: Non-hexadecimal digit found# Not sure why there's an L in there... take it out...>>> binascii.unhexlify("A88BE9989900")'xa8x8bxe9x98x99x00'


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5431509.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存