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


 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-05-07
  • 2021-10-25
  • 2022-12-23
  • 2021-04-25
  • 2021-09-14
相关资源
相似解决方案