12 步:让我们给我们的房子盖个屋顶吧!

  • 点击并将Triangle拖到程序的底部。
  • 将三角形的变量名称更改为roof
  • 由于这个三角形是我们房子的屋顶,我们在程序中将其命名为roof

    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, "purple")
    • Run Code
    • 提交作品
    • 下个活动
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)