d={[]:”str”,{}:”11”}
TypeError: unhashable type: ‘dict’
python不支持dict的key为list或dict类型,因为list和dict类型是unhashable(不可哈希)的。
参考:https://blog.csdn.net/u012643122/article/details/53421424
d={[]:”str”,{}:”11”}
TypeError: unhashable type: ‘dict’
python不支持dict的key为list或dict类型,因为list和dict类型是unhashable(不可哈希)的。
参考:https://blog.csdn.net/u012643122/article/details/53421424
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。