第6步:让狐狸继续向下移动,到屏幕底端。

像素是控制台上的度量单位。

  • 让精灵向下移动150个像素。
  • .move_down(50) 指令中, 将数字从50 更改为 150。数字前后不加引号。
  • 点击 运行 查看狐狸向下移动的过程。然后点击 提交 下一步

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(50)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)