题库 Python题库 题目列表 执行以下Python代码后输出的结果是?d={1:'monkey...
单选题

执行以下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'}

题目信息
2022年 9月 选择题
71%
正确率
0
评论
27
点击