增删改查 增 fromkeys dic={} dic[‘dd’]=(‘你好’) dic[‘ss’]=(‘lili’) dic[‘ww’]=(‘wangwei’) dic[‘qq’]=‘ashui’ dic[‘support’]=‘宝蓝’ print(dic) {‘dd’: ‘你好’, ‘ss’: ‘lili’, ‘ww’: ‘wangwei’, ‘qq’: ‘ashui’, ‘support’: ‘宝蓝’ 删 pop通过键来删除(如果没有改建,可设置默认值,预防报错) dic={‘nj’:‘你好’,‘qq’:‘唱歌’} dic.pop(‘nj’) print(dic ) {‘qq’: ‘唱