Python2和Python3关于reload()用法的区别

Python2 中可以直接使用reload(module)重载模块。
 
Pyhton3中需要使用如下两种方式:
方式(1>>> from imp
>>> imp.reload(module)
方式(2>>> from imp import reload
>>> reload(module)
原文地址:https://www.cnblogs.com/lfydeblog/p/8462318.html