第 7 步:让我们让精灵等待2 秒,然后向右移动。

  • 点击在工具包中。拖出Wait并将其放入您的程序中。
  • .wait( 2 )命令将使整个舞台暂停两秒钟。
  • .拖出Move Right并将其放在程序的底部。
  • 点击看狐狸向下移动,等待 2 秒,然后向右移动。

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

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