模块导入from collections import Iterator,Iterable失败

1.引入模块报错

  from collections import Iterator,Iterable

报错:
  DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterator,Iterable

2.修改为:

  from collections.abc import Iterator,Iterable


上一篇:解读Unity中的CG编写Shader系列4——unity中的圆角矩形shader


下一篇:Arch Linux 安装博通 BCM4360 驱动(Arch Linux, Ubuntu, Debian, Fedora...)