1、ord()
2、chr()
3、先把字符转化十进制。 strtoint()
   在转化为十六进制。 inttohex
4、用format()
   例:format('%x',[i]);   //i中是hex值