今天运行 py 时出现下面的问题:
DeprecationWarning: Usingor importing the ABCsfrom'collections' instead offrom'collections.abc'is deprecated since Python3.3,andin3.9 it will stop working
是这个语句出现的问题:
from collectionsimport Iterable
好像是 py 版本更新以后包发生了变化,只需要改一下包名就行:
collections->collections.abc