警告:此程序有一个错误,需要进行修复! 这个错误是一个逻辑错误

规则:程序中的函数在被调用前不会运行。

  • 点击 运行 并查看控制台,看看有什么问题。
  • 什么都没有发生,因为没有函数被调用!
  • 通过调用函数来调试程序。 注意,函数的名称是 moon()


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

def moon(): stage.set_background("moon") sprite = codesters.Sprite("rocket") sprite.say("3 - 2 - 1...") stage.wait(1) sprite.say("... blast off!") sprite.move_up(550)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)