1、首先建立一个字诽粘辔凉典。字典的每个键值 key=>value 对用冒号 : 分割,每个键值对之间用逗号 , 分割,整个字典包括在花括号 {} 中 荑樊综鲶,格式如下所示:d = {key1 : value1, key2 : value2 }