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

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

 

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

相关文章:

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