📜  python 元组键字典 - Python 代码示例

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

代码示例1
'''
Dictionaries need hashable data as key.
Lists are not hashable so you can't use them as a key.
Tuples are hashables.
A way to do is to convert list to tuple before using them as a
 dictionary key
'''