python3 字符和数字(ASC码)转换 print(ord('b')) print(ord('B')) print(chr(98)) print(chr(66)) 结果:98 66 b B 也可以数字转ASC码,原理一样,如下(结果就不输出了): chr(5) ord('5')