第 5 步:让我们的圆看起来像太阳,把它变成"gold"

  • 将颜色更改为"gold" 。确保不要删除引号!
  • 点击运行以查看您的更改。
  • 圆圈中的第四个参数是形状的颜色。
  • 颜色的名称,如"gold" ,是一个单词或字符串,必须用引号" "括起来。

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

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