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