TypeError: unhashable type: 'dict'

d={[]:”str”,{}:”11”}
TypeError: unhashable type: ‘dict’

python不支持dict的key为list或dict类型,因为list和dict类型是unhashable(不可哈希)的。

 

参考:https://blog.csdn.net/u012643122/article/details/53421424

posted @ 2020-01-13 16:40  cknds  阅读(23040)  评论(0编辑  收藏  举报