python 将16进制转为字节

 

数值为:0xFD

>>> x="FD"
>>> x.decode('hex')
'\xfd'

 

posted @ 2019-01-24 15:48  anobscureretreat  阅读(4854)  评论(0)    收藏  举报