警告:这个程序有一个错误,这意味着我们需要调试它!

规则: sprite .move_down()具有整数参数。整数是蓝色的,没有被引号包围。

参数是命令运行所需的信息!

  • 点击运行并阅读错误消息。论点有什么问题?
  • 调试程序,使刺猬向下移动150像素。

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

stage.set_background("winter") sprite = codesters.Sprite("hedgehog") sprite.move_down("150")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)