python-3.x - 在字典中添加字典
问题描述
我有一本看起来像这样的字典:
store = {}
我在另一个字典中有一堆数据,如下所示:
items = {"hardware_items":23, "fruit_items":5, "fish_items": 23}
如何将 items 字典放入 store dict 中,以便获得以下结果?
store = {"hardware_items":23, "fruit_items":5, "fish_items": 23}
谢谢
解决方案
推荐阅读
- service - Kubernetes Dashboard 服务无法访问
- python - 搜索具有相同日期、时间(时间 +/-30 秒)和事件名称的重复行
- python - 如何将字典键与字符串匹配并放入新字典?
- apache-nifi - NIFI 使用 Groovy 访问内容声明标识符
- excel - 过滤表,复制并粘贴到多个现有工作簿中
- python - pandas python根据一个或多个其他列的子集更新A列的子集
- html - CSS/SASS 根据类选择元素,但排除某些具有相同类的元素
- java - Java SAML2 SSO 客户端
- java - 错误:无法找到或加载主类 MyCSVParser
- c# - 如何批量更改VS中的代码