>>> help(ord)
Help on built-in function ord in module builtins:
ord(...) #這是一個函數
ord(c) -> integer #接受一個參數,返回值是int,整數
Return the integer ordinal of a one-character string. #參數是長度為1的字符,返回它對應的整數
示例:
>>> s = ord('a')
>>> s
97