print(ord('a'))#字符按照unicode转换成数字,只接受单个字符 print(chr(97))#数字按照unicode转换成字母 print(ascii('艾克')) #只要是ascii码中的内容就打印出来,如果不是则以u的形式返回