1. 定义一个字典,分别使用a、b、c、d作为字典的关键字,值为任意内容2. 为该字典增加一个元素‘c':'cake'后,将字典输出到屏幕 3. 取出字典中关键字为d的值
dic={"a":"area","b":"bike","c":"William"} dic['c']='cake' print(dic) print(dic)