第 12 步:太好了!我们的嵌套循环完成了。让我们开始定制和创建我们的方块吧!

  • 在您创建正方形的地方,将第一个参数从0更改为x ,将第二个参数从0更改为y
  • 然后,将第三个参数从100更改为square_length - 5
  • 最后,将正方形的颜色从"blue"更改为"white"
  • 好的!点击运行看看我们的第一个正方形出现在右上角。

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)