【发布时间】:2018-01-22 13:24:08
【问题描述】:
我在尝试运行本教程tutorial 中的代码时遇到以下错误。我能够修复以前的错误,但由于该网络的训练需要大约 10 分钟,所以我现在卡住了。
当我转到第 254 行时,它只是一个没有代码的注释行,我看不出 plt.show 命令有什么问题。我在代码的第 254 行找不到它所说的返回语句,所以我不确定问题是什么。谁能看出来是什么?
Traceback (most recent call last):
line 52, in run_file pydev_imports.execfile(file, globals, locals) # execute the script
line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc)
line 369, in <module> plt.show(fig1)
line 254, in show return _show(*args, **kw)
TypeError: __call__() takes 1 positional argument but 2 were given
【问题讨论】:
标签: python matplotlib