警告:这个程序不起作用!它有一个错误,所以我们需要调试它!

规则:在引入 for 循环的行的末尾必须有一个冒号 ( : )。

  • 点击运行并阅读错误消息。
  • 在 for 循环的第一行末尾插入一个冒号,如下所示: for · counter · in · range( 5 )
  • 调试程序,让精灵在月球上上下跳跃。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)