Last active
March 5, 2020 16:55
-
-
Save miracleyoo/7538295228215114b548db8417254273 to your computer and use it in GitHub Desktop.
[Reload Python Module] #python #jn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For Python 2.x | |
reload(foo) | |
#For Python 3.x | |
import importlib | |
import foo #import the module here, so that it can be reloaded. | |
importlib.reload(foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment