给出如下代码:DictColor={"seashell":"海贝色","gold":"金色","pink":"粉红色","brown":"棕色","purple":"紫色","tomato":"西红柿色"}以下选项中能输出“海贝色”的是


给出如下代码:DictColor={"seashell":"海贝色","gold":"金色","pink":"粉红色","brown":"棕色","purple":"紫色","tomato":"西红柿色"}以下选项中能输出“海贝色”的是

A.print(DictColor.keys())

B.print(DictColor["海贝色"])

C.print(DictColor.values())

D.print(DictColor["seashell"])

正确答案:D


Tag:计算机科学与技术 Python语言程序设计 海贝 时间:2024-02-04 16:50:35