python 有一個特別的功能是字典(dictionary),其中鍵值對應數值且具唯一性
dic = {'key': 1, 'b': 2, 'b': '3'}
a = dic['b']
a = 2 #兩者意義相同
參考:
dic = { "A": 10, "J": 18, "S": 26,
"B": 11, "K": 19, "T": 27,
"C": 12, "L": 20, "U": 28,
"D": 13, "M": 21, "V": 29,
"E": 14, "N": 22, "W": 32,
"F": 15, "O": 35, "X": 30,
"G": 16, "P": 23, "Y": 31,
"H": 17, "Q": 24, "Z": 33,
"I": 34, "R": 25
}