📜  重新加载未定义 python 3 - Python 代码示例

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

代码示例1
#For >= Python3.4:
import importlib
importlib.reload(module)

#For <= Python3.3:
import imp
imp.reload(module)

#For Python2.x:
#Use the in-built reload() function.

reload(module)