📜  python 重新导入模块 - Python 代码示例

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

代码示例2
from importlib import reload  
import foo

while True:
    # Do some things.
    if is_changed(foo):
        foo = reload(foo)