python3.10后Iterable无法导入

ImportError: cannot import name 'Iterable' from 'collections'报错解决方案

try:

from collections.abc import Iterable

except ImportError:

from collections import Iterable

 

 

except ImportError:

posted on 2024-03-20 14:17  帅胡  阅读(99)  评论(0编辑  收藏  举报

导航