错误"/>
collections导入错误
从Python3中导入collections
from collections import Iterable
from collections import Iterator
出现以下错误
DeprecationWarning: Using or importing the ABCs from ‘collections’ instead of from ‘collections.abc’ is deprecated since Python 3.3, and in 3.9 it will stop working from collections import Iterator
解决方法为修改导入collections的方式
from collections.abc import Iterable
from collections.abc import Iterator
更多推荐
collections导入错误
发布评论