def func(): from time import sleep
src.user = None from core import src
循环导入模块问题解决方案
原文:https://www.cnblogs.com/achai222/p/12592678.html