introducing iterative determination python 3

Import iteration reported the following error:

 代码: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。

Because the collections already in python 3.8 does not work, need to change collections.abc, it should be correct: from collections import Iterable

As shown below:

 

Guess you like

Origin www.cnblogs.com/onerland/p/11301121.html