目录1.引言2.循环依赖的定义3.循环依赖的问题4.解决方案1. 重新设计模块结构2. 延迟导入3. 使用依赖注入4.python 利用 python 的动态特性5. 代码重构5.结论1.引言
i\'ve got 3 Log classes that all implements iLog interface: DatabaseLog FileLog ScreenLog there can only be one instance of them. initially i though of using single pattern for each class but then