📜  向字典添加键 - Python 代码示例

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

代码示例3
# Init the dictionary
d = {}
# Add pairs
key = "Foo"
value = "Bar"
d[key] = value
# or 
d['What_ever_key'] = 'What_ever_value'