One for all,all for one.
2014年5月24日 星期六
Python hex char to decimal
>>> chr(31)
'\x0f'
>>> int('1f', 16)
31
>>> int('0x1f', 16)
31
>>> ord('\x1f')
31
References :
Convert hex string to int in Python - Stack Overflow
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言