PYTHON 语法
PYTHON 注释
PYTHON 变量
PYTHON 数据类型
PYTHON 数字
PYTHON 字符串
PYTHON 布尔值
PYTHON 运算符
PYTHON 列表
PYTHON 元组
PYTHON 集合
PYTHON 字典
PYTHON 如果...否则
PYTHON While 循环
PYTHON For 循环
PYTHON 功能
PYTHON Lambda
PYTHON 类
PYTHON 继承
PYTHON 模块

Menu
×
×
正确

练习:

向汽车字典中添加键/值对 "color" : "red"。

car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car["color"] = "red"
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car['color'] = 'red'
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car["color"] = 'red'
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car['color'] = "red"

不正确

点击 此处 重试

正确

下一题 ❯
car =	{
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
  







×

重置分数?