python TypeError: unhashable type: 'dict'

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

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

 

参考这个写的:http://blog.csdn.net/u012643122/article/details/53421424

posted @ 2017-09-19 16:10  那时的吻狠陶醉  阅读(30066)  评论(0编辑  收藏  举报