全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Dictionary, key, entry?

又称: dictionary · entry · dictionary key

Definition 26.1 Primary & Middle School Computer Science · 第 26 章 — Dictionaries

A dictionary is a value that holds pairs: each pair, an entry, links a key to a value. The keys are all different; d[key] gives the value linked to key. A dictionary is written between braces, with a colon between each key and its value: {"Sami": 12, "Noor": 13}.

A dictionary as two columns: each key leads to its value.
A dictionary as two columns: each key leads to its value.
Finding Grandma: a walk through a list against one step in a dictionary. How a dictionary goes straight to its key is explained in the university books.
Finding Grandma: a walk through a list against one step in a dictionary. How a dictionary goes straight to its key is explained in the university books.
在原文中阅读 →