>>> ord(‘王‘)#获取字符编码 29579 >>> chr(29579)#把编码转成对应的字符 ‘王‘
ord()与char()
原文:http://www.cnblogs.com/themost/p/6786093.html