获取TypeError:unhashable type:'dict'当我运行下面的代码时,请解释一下我可能做错了什么

2024-04-24 12:12:02 发布

您现在位置:Python中文网/ 问答频道 /正文

theBoard = {}
theBoard.setdefault({1: '1', 2: '2', 3: '3',
                     4: '4', 5: '5', 6: '6',
                     7: '7', 8: '8', 9: '9'})

Tags: setdefaulttheboard