第18992题 单选
执行以下Python字典操作代码后,输出的最终字典结果是?
d = {1: 'monkey', 2: 'panda', 3: 'bird', 4: 'fish'}
d[5] = 'sheep'
del d[3]
d[3] = 'dog'
A

{1: 'monkey', 2: 'panda', 4: 'fish', 5: 'sheep', 3: 'cat'}

B

{1: 'monkey', 2: 'panda', 4: 'fish', 5: 'sheep', 3: 'dog'}

C

{1: 'monkey', 2: 'panda', 3: 'dog', 5: 'sheep', 4: 'duck'}

D

{1: 'monkey', 2: 'panda', 3: 'cat', 5: 'sheep', 4: 'duck'}

提交0次 正确率0.00%
答案解析