refs:
http://blog.csdn.net/u011546806/article/details/45370069
str = "7B 7D 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 32 0F 10 0A 4B 4C 00 00 00 00 00 00 00 00 3F 21"
def GetCmd(hexString):
hexString = hexString.replace(" ", "");
if ((len(hexString) % 2) != 0):
hexString += " ";
bits = ""
for x in range(0, len(hexString), 2):
bits += chr(int(hexString[x:x+2], 16))
return bits;
最后
以上就是火星上草莓最近收集整理的关于python 16进制string 转string的全部内容,更多相关python内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复