描述: ord(str) 将一个字符返回对应的 ASCII 数值 str : 字符 例子: print(ord('a')) print(ord('A')) print(ord('1')) 结果: 97 65 49