用python实现import语句时,出现了以下问题:
from collections import Iterable
Warning (from warnings module):
File "__main__", line 1
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
是因为版本更新发出的警告。目前可以忽略,不影响后续使用。
本文介绍了在Python中使用from collections import Iterable时出现的警告信息,并解释了该警告的原因是由于版本更新导致。从Python 3.8开始,从'collections'而不是'collections.abc'导入抽象基类(ABCs)将不再工作。

被折叠的 条评论
为什么被折叠?



