标签: python python-3.x dictionary
我试图了解删除字典中重复项背后的Python逻辑。似乎始终保留行中的最后一个元素。是这样吗?
print({True: 5, True: 10})给出{True: 10}。
print({True: 5, True: 10})
{True: 10}
为什么不{True: 5}?
{True: 5}