字典1个键的多个值

时间:2018-10-01 16:23:46

标签: python dictionary key

如何为字典键添加多个值?

thisdict =  {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
thisdict["year"] = 1968
print(thisdict)

0 个答案:

没有答案