For Python 2 use built-in function reload():
reload(module)
For Python 2 and 3.2–3.3 use reload from module imp:
imp.reload(module)
But imp
is deprecated since version 3.4 in favor of importlib, so use:
importlib.reload(module)
출처 : http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module
'개발 > PYTHON' 카테고리의 다른 글
flatMap (0) | 2017.02.13 |
---|---|
random 하게 list data split (0) | 2017.01.31 |
python list filtering 방법 (0) | 2017.01.25 |
PYTHON URL DOWNLOAD (0) | 2017.01.25 |
python list 초기화 (0) | 2017.01.22 |
댓글