W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_dictionary_pop_1.py:
car = { "brand": "Porsche", "model": "911", "year": 1963 } car.pop("model") print(car)
x
car
=
{
"brand"
:
"Porsche"
,
"model"
:
"911"
,
"year"
:
1963
}
car
.
pop
(
"model"
)
print
(
car
)