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

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

 

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-06-29
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2021-04-29
  • 2021-07-12
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案