DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Callable
当出现报错,原因:不推荐使用警告:自Python 3.3以来,不推荐使用或从“collections”而不是从“collections.abc”导入abc,在3.9中它将停止工作
解决警告方法:
把代码
from collections import Callable
改成
from collections.abc import Callable