📜  循环导入错误 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:55.698000             🧑  作者: Mango

代码示例1
class A:
    def __init__(self, ref):
        from b import B
        assert isinstance(ref, B)
        self.ref = ref