以score为例 score = {'Michael': 95, 'Bob': 75, 'Tracy': 85}
print(score['Bob']) # 通过key获取value值
print(score.get('kk')) # 通过key获取value值
score['KK'] = 123
print(score) # 添加
score.pop('Bob')
print(score) # 删除
print(score.keys()) # 查看所以key
print(score.values()) # 查看所以value
for key, value in score.items(): # 循环字典
print(key, value)