循环导入模块问题解决方案 循环导入模块问题解决方案 1 尽量将互相导入的代码放到函数内 def func(): from time import sleep 2 将引起循环导入的变量放到导入模块import代码前 src.user = None from core import src