📜  python refresh import - Python 代码示例

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

代码示例1
from importlib import reload  
import foo

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