主页
Python
Python 字典(Dictionary) get() 方法
demo_ref_dictionary_get2
运行 ❯
×
更改方向
保存代码
更改主题
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.get("price", 15000) print(x)
15000