丝路驿站字典station = {'长安':1, '武威':2, '张掖':3},要删除键为'武威'的元素,正确的方法是?
A:del station['武威']
B:station.remove('武威')
C:station.pop(2)
D:station.delete('武威')
正确答案:A
试卷来源:2026年丝路新程 Python编程(小学组4-6年级)模拟卷(三)
题库首页 › 信息素养大赛(Python) › 题目 18413
正确答案:A
试卷来源:2026年丝路新程 Python编程(小学组4-6年级)模拟卷(三)