![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
若有字典fruits={'apple':10,'pear':12,'orange':23},当执行fruits【'pear'】=22后,则fruits的字典元素变为()
A.{'apple':10,'pear':12,'orange':23}
B.{'apple':10,'pear':22,'orange':23}
C.{'apple':10,'orange':23}
D.['apple':10,'pear':12,'orange':23]
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_ckda.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_wyda.png)
- · 有3位网友选择 A,占比33.33%
- · 有2位网友选择 D,占比22.22%
- · 有2位网友选择 C,占比22.22%
- · 有2位网友选择 B,占比22.22%