📜  如何在python代码示例中使用字典

📅  最后修改于: 2022-03-11 14:45:03.374000             🧑  作者: Mango

代码示例6
# Dictionaries in Python

ages = {"John": 43, "Bob": 24, "Ruth": 76} # Marked by { at beginning and a } at end

# ^^^ Has sets of keys and values, like the 'John' and 43 set. These two values must be seperated by a colon

# ^^^ Sets of values seperated by commas.