仅导入模块,不从模块导入:
考虑
a.py:
import bclass A: def bar(self): return b.B()
和
b.py:
import aclass B: def bar(self): return a.A()
这工作得很好。

仅导入模块,不从模块导入:
考虑
a.py:
import bclass A: def bar(self): return b.B()
和
b.py:
import aclass B: def bar(self): return a.A()
这工作得很好。