Difference between from collections import Container and from collections.abc import Container
问题 We can import Container in two ways: from collections import Container from collections.abc import Container help function for both Container returns the same documentation. help(collections.Container) : Help on class Container in module collections.abc: class Container(builtins.object) | Methods defined here: | | __contains__(self, x) | | ---------------------------------------------------------------------- | Class methods defined here: | | __subclasshook__(C) from abc.ABCMeta | Abstract