第 6 步:现在,让我们为net分配一个位置。我们将使用其唯一的变量名称来分配程序中的操作。

  • 前往工具包的部分,然后将Go To拖到您的程序中。
  • .go_to()命令中的第一个数字更改为215并将第二个数字更改为175
  • .go_to()命令前面的名称更改为net

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

stage.set_background("halfcourt") sprite = codesters.Sprite("player1") sprite.go_to(-175, -150) net = codesters.Sprite("basketballnet")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)