摘要:
1 def str_to_hex(s): 2 return ' '.join([hex(ord(c)).replace('0x', '') for c in s]) 3 4 def hex_to_str(s): 5 return ''.join([chr(i) for i in [int(b, 16) for b in s.split(' ')]]) 6 ... 阅读全文
posted @ 2017-10-17 13:25
帅胡
阅读(23255)
评论(0)
推荐(1)