第 3 步:我们可以使用一个动作让我们的精灵向下移动。我们改变动作中的数字来控制距离。

  • .拖出Move Down并将其放在程序的底部。
  • .move_down()中的整数参数从50更改为100

我们称其中没有小数或小数部分的数字为整数。整数始终为blue且不被引号包围,例如: 123

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

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