创建字典的语句中,下列哪句是错误的?
A. price = {'苹果':5.5,'香蕉':2,'橘子':1.5,'葡萄':8,'梨':6.5}
B. price = dict(苹果=5.5,香蕉=2,橘子=1.5,葡萄=8,梨=6.5)
C. tuple_fruit =['苹果','香蕉','橘子','葡萄','梨']list_fruit = [5.5,2,1.5,8,6.5]price =dict(tuple_fruit,list_fruit)
D. tuple_fruit =['苹果','香蕉','橘子','葡萄','梨']list_fruit = [5.5,2,1.5,8,6.5]price =dict(zip(tuple_fruit,list_fruit))
price = {'苹果':5.5,'香蕉':2,'橘子':1.5,'葡萄':8,'梨':6.5}如果要访问price字典获得葡萄的价格,那么以下哪个语句是正确的?
A. print(price[3])
B. print(price[4])
C. print(price[葡萄])
D. print(price['葡萄'])