【发布时间】:2013-11-03 12:32:35
【问题描述】:
我读了很多关于 reload 的文章,但我无法使用 reload 功能。imp.py 本身有一些错误。我没有做任何更改。
>>> import imp
>>> imp.reload('fileread')
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
imp.reload('fileread')
File "C:\Python33\lib\imp.py", line 258, in reload
raise TypeError("reload() argument must be module")
TypeError: reload() argument must be module
fileread 存储在 python 的正确目录中。
【问题讨论】:
标签: python python-3.x error-handling reload