原因:python3.9 支持对 dict 类型使用 |, 而较老的版本不支持

解决方案 :1. 用更新的 python 2. 把 | 操作替换成

{**d1, **d2}

来源:https://stackoverflow.com/questions/13361510/typeerror-unsupported-operand-types-for-dict-items-and-dict-items

最新文章

  1. CRL快速开发框架系列教程五(使用缓存)
  2. 如何实现一个php框架系列文章【6】mysql数据库
  3. ebs R12.2启动报错"failed to start a managed process after the maximum retry limit"
  4. spring mvc文件上传
  5. 268. Missing Number -- 找出0-n中缺失的一个数
  6. libcurl安装使用方法-简单实用(摘录)
  7. 【OpenCV】opencv3.0中的SVM训练 mnist 手写字体识别
  8. 这些天自身努力的体会,关于java方面的
  9. [转]关于MYSQL Innodb 锁行还是锁表
  10. POJ 2528 Mayor's posters(线段树)
  11. android中handler中 obtainmessge与New message区别
  12. 条件注释+JS实现各版本IE浏览器className
  13. Foundation Sorting: Single List Insertion Sort
  14. dede 标签
  15. KoaHub.js可借助 Babel 编译稳定运行在 Node.js 环境上
  16. .net core2 发送电子邮件封装
  17. 查看.ssh文件在哪
  18. Java学习笔记21---内部类之对成员内部类的补充说明(二)
  19. 【转】ASP.NET Core 依赖注入
  20. 安卓开发之ScrollView

热门文章

  1. 网络监测工具之Zabbix的搭建与测试方法(一)
  2. 虚假新闻检测(CADM)《Unsupervised Domain Adaptation for COVID-19 Information Service with Contrastive Adversarial Domain Mixup》
  3. 使用Springboot+redis+Vue实现秒杀的一个Demo
  4. [数据与分析可视化] D3入门教程3-d3中的数据操作
  5. 企业应用架构研究系列二十五:IdentityServer4 认证服务搭建
  6. .NET 7新特性
  7. 使用小黄鸟(HttpCanary)+模拟器(VMOS Pro)对手机APP进行抓包
  8. prettier+ts+eslint+vscode配置代码保存自动格式化,自动remove unsed declaration,delete no-unused-imports
  9. 华为云服务器8000通道映射到本地,本地浏览器访问jupyter
  10. 同类型芯片资源对比-CH32x芯片快速应用说明