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

解决方案 »

  1.   

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

  2.   

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

  3.   

    3、先把字符转化十进制。 strtoint()
      在转化为十六进制。 inttohex
    format('%x',[i]);  //i中是hex值 不行,我试了请不要抄别人的回复