python中Iterable类型调用时包导入时from collections import Iterable执行报错问题解惑

最近刚刚接触python,找了一些资料,在慢慢学基础,今天遇到一个问题,实际上是介绍关于用 Iterable中isinstance方法判断一个对象是否能够迭代时,要先导入包,好多资料介绍的都是from collections import Iterable,但是我执行的时候报错,必须用from collections.abc import Iterable才能够。python 这个报错提示仍是比较
相关文章
相关标签/搜索