【发布时间】:2013-07-21 23:56:17
【问题描述】:
我下载了 Sypder,当我在解释器中运行脚本时,我不断收到以下错误。
>>> continue
File "<stdin>", line 1
SyntaxError: 'continue' not properly in loop
即使在一个简单的 hello world 脚本上也会发生这种情况:
print('hello world!')
【问题讨论】:
我下载了 Sypder,当我在解释器中运行脚本时,我不断收到以下错误。
>>> continue
File "<stdin>", line 1
SyntaxError: 'continue' not properly in loop
即使在一个简单的 hello world 脚本上也会发生这种情况:
print('hello world!')
【问题讨论】:
你能提供你的脚本吗?在 Spyder 中的 python 解释器上以 n 交互模式运行 python 时,你是否遇到过这个问题?
在讨论这个问题的 Google 群组上有一些链接:
Google Groups Spyder problems.
请参阅页面末尾指向一些解决方案的响应。
【讨论】:
我点击的按钮是“继续”按钮。它看起来像 MATLAB 中的播放按钮。实际的运行按钮是绿色圆圈,以防万一有人也遇到这个愚蠢的小错误。感谢普拉哈兰德的回复。
【讨论】: