第12步:让我们在房子上加一个屋顶!

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

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)