编辑。问题在于,每次导入函数时,更新都不会更改它。为此,我需要做 import sys, importlib importlib.reload(sys.modules['foo']) from foo import ...
確定! 回上一頁