第10 步:让我们使用三角形参数中的变量。

请记住,我们要使用变量名,而不是它们的值。

  • 将my_triangle中2的width参数替换为变量triangle_width 。
  • 将my_triangle中3的height参数替换为变量triangle_height 。

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)