Python的字典 1.创建字典 .使用花括号,也使用内建 函数dict >>> zidian =dict(color='red', points='5') >>> zidian= { 'color':'red', 'points':'5'} >>> zidian1 = dict(color='red', points='5') 2.添加和修改字典 我们通过dict[key] = value来实现