📜  检查 python dict 中的多个键 - Python 代码示例

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

代码示例2
No, each key in a dictionary should be unique. 
You can’t have two keys with the same value. 
Attempting to use the same key again will just overwrite the previous value stored. 
If a key needs to store multiple values, 
then the value associated with the key should be a list or another dictionary.
Sourece: https://discuss.codecademy.com/t/can-a-dictionary-have-two-keys-of-the-same-value/351465