python将字符串转成16进制的ASCii码的值
2012-01-25 17:50
246 查看
binascii.a2b_hex(hexstr)
binascii.unhexlify(hexstr)
Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex(). hexstr must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise a TypeError is raised.
帮助
来源:http://www.dreamrunner.org/2011/11/convert-between-binary-and-ascii/
binascii.unhexlify(hexstr)
Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex(). hexstr must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise a TypeError is raised.
帮助
相关文章推荐
- python将字符串转成16进制的ASCii码的值
- python将字符串转成16进制的ASCii码的值
- python将字符串转成16进制的ASCii码的值
- python:16进制显示中文
- 字符串16进制转10进制
- C# 16 进制字符串转 int的方法
- 字符串16进制存储
- python 以16进制打印输出
- Python天天美味(16) - 过滤字符串的技巧,map与itertools.imap
- Python任意字符串转16, 32, 64进制
- iOS 二进制数组转成16进制字符串
- 字符串16进制转10进制
- 字符串16进制显示
- 记录:将得到的字符串转成16进制
- Python字符串操作集锦之ASCII码与字符互换
- ios 图片转成16进制字符串, NSdata 转16进制字符串
- 16 进制码转换ASCII码
- ASP字符串16进制互转
- C#如何将字符串转成16进制数
- 指针指向的字符串转换成16进制数