第 6 步:我们的网络还需要 x,y 坐标!

  • 单击逻辑选项卡,然后单击.
  • Integer Variable代码底部。
  • 将 = 符号左侧的名称从my_varnetx
  • 将等号后面的整数从25更改为90

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

stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80 bally = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) ball = codesters.Sprite("soccerball", ballx, bally)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)