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

原文地址:https://www.cnblogs.com/fh-fendou/p/7552398.html