第 11 步:为了完成我们房子的底部,让我们改变正方形的颜色。

  • 将颜色更改为"purple"
  • 颜色参数是一个字符串。它应该是绿色的并被引号包围。

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

# sprite = codesters.Circle(x, y, diameter, "color") sun = codesters.Circle(-150, 175, 75, "gold") # sprite = codesters.Square(x, y, width, "color") house = codesters.Square(0, -125, 250, "blue")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)