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

规则: 使用等待指令,使控制台在动作之间暂停。

  • 点击 运行 并查看小猫快速上下翻转。小猫移动得太快,你无法看出它在翻转!
  • 通过在正确的位置添加 Wait 指令,对程序进行调试,并且将其设定为等待 1 秒。

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

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