python - 将元组传递给frozenset
问题描述
我有这个tuple
t = (
{
"path": "/api/",
"uuid": "068aebae",
"params": {
"name": "foobar",
},
"response": {"is_true": False},
"content": "bar",
},
)
我想传递给frozenset
>>> frozenset(d)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'dict'
我怎样才能做到这一点?
解决方案
推荐阅读
- android - 如何以编程方式在应用程序图标上设置徽章?
- firebase - 链接后,Bigquery 未使用 firebase 中存在的 firestore 数据库进行更新
- r - R中的随机游走
- c# - 如何通过使用 Angular 作为前端并将文件通过 api 传递到 api 控制器从 C# 代码上传文件到 azure
- sql - 查询 Big Query 重复模式
- dynamics-crm - 如何获得 Dynamics 365CE 个人开发环境?
- kubernetes - HPA 无法从 prometheus 适配器获取自定义指标
- python - 在芹菜组上捕获错误,而不是单个任务
- android - Android:适合按钮可绘制
- git - git简单合并不合并