执行以下代码后,最终字典info的值是?( ) info = {'fruit': 'apple', 'price': 5, 'color': 'red'} info['price'] = 6 info['weight'] = 0.3
A:{'fruit': 'apple', 'price': 5, 'color': 'red', 'weight': 0.3}
B:{'fruit': 'apple', 'price': 6, 'color': 'red'}
C:{'fruit': 'apple', 'price': 6, 'color': 'red', 'weight': 0.3}
D:{'fruit': 'apple', 'price': 5, 'color': 'red'}
正确答案:C
试卷来源:202512 青少年软件编程等级考试Python二级真题