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

规则:程序从上到下依次运行。并且程序无法运行尚未创建的函数!

  • 点击 运行 并读取弹出的错误信息。
  • 通过调用已定义的函数来调试程序。

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

stage.set_background("winter") snow() def snow(): stage.set_bounce(1) stage.set_gravity(10) snow_1 = codesters.Sprite("snowflake1", 0, 300) snow_1.set_y_speed(7) snow_2 = codesters.Sprite("snowflake2", 150, 300) snow_2.set_y_speed(3) snow_3 = codesters.Sprite("snowflake3", -150, 300) snow_3.set_y_speed(11)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)