第12104题 判断题
判断使用price{'面包'}='8元'修改Python字典price中'面包'价格的代码是否正确

现有Python字典如下:

price={'牛奶': '5元', '面包': '6元'}

现要将字典中键'面包'对应的值修改为'8元',使用代码price{'面包'}='8元'进行操作,请判断该操作是否正确。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析