第 12 步:现在我们有了一个循环,我们可以建造任意数量的建筑物!

RULE range()中的number控制循环运行的次数。

  • range()中的数字从5更改为25
  • 点击跑去看看我们的城市完成了!

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)