该
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'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)