第 5 步:让我们调整高度,然后将矩形转到位。

  • 将矩形的高度参数从50更改为100
  • 并拖出Turn Left
  • .turn_left()命令中的整数更改为45
  • 点击运行以查看您的更改和提交接下来当你完成。

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

stage.set_background_color("lightblue") # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 700, 50, "gold")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)