为什么是A选项,怎么理解

d={'name':'alice','age':19,'sex':'F'},不能删除’sex’项目的操作的是()

A.
d.pop()

B.
del d['sex']

C.
d.pop('sex')

D.
d.clear()

a是弹出第一个也就是相当于删除name B和c都是删除sex而题目不能删除sex D是清除所有所以也不符合

pop(...)
| D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
| If key is not found, d is returned if given, otherwise KeyError is raised
不填东西是会报错的