📜  从字典python代码示例中删除元素

📅  最后修改于: 2022-03-11 14:45:53.745000             🧑  作者: Mango

代码示例6
squares = {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

# remove a particular item, returns its value
# Output: 16
print(squares.pop(4))