第11步:通过只改变程序中的一行代码让所有的星形出现在更远的地方。

因为我们使用一个变量来确定星形的大小,所以很容易同时更改它们。

  • star_size 的值更改为 5
  • 点击 运行 以观察所有星形变小。

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)