当加载模块被修改后,如不重新完全执行程序,则不会再加载此模块。
因此在调试中,通常用reload模块来更新所加载模块。
from imp import reload
import table_prep_sta
#if you would like to reload the module table_prep_sta, try to use the function below:
reload(table_prep_sta)
当加载模块被修改后,如不重新完全执行程序,则不会再加载此模块。
因此在调试中,通常用reload模块来更新所加载模块。
from imp import reload
import table_prep_sta
#if you would like to reload the module table_prep_sta, try to use the function below:
reload(table_prep_sta)