AI题库 · Python编程二级题库
题目分享 #15829
执行以下代码后,最终字典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'}
AI题库 · 编程考级与信奥赛真题库
查看答案 →
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。