第 8 步:我们应该给每个形状自己的名称或变量。

  • 将 square 的变量名称更改为house
  • 请记住,形状的变量名称是等号=之前的橙色单词。
  • 点击跑去检查你的工作。

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") sprite = codesters.Square(0, 0, 100, "blue")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)