给定字典d,哪个选项对d.get(x, y)的描述是正确的?()
(A)返回字典d中键值对为x:y的值
(B)返回字典d中键为x的值,如果不存在,则返回y
(C)返回字典d中键为x的值,如果不存在,则返回空
(D)返回字典d中值为y的值,如果不存在,则返回x
参考答案
继续答题:下一题


(A)返回字典d中键值对为x:y的值
(B)返回字典d中键为x的值,如果不存在,则返回y
(C)返回字典d中键为x的值,如果不存在,则返回空
(D)返回字典d中值为y的值,如果不存在,则返回x