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