巧妙的套用 ----重复命令的嵌套.pptVIP

  • 2
  • 0
  • 约小于1千字
  • 约 12页
  • 2019-02-14 发布于上海
  • 举报
巧妙的套用 ----重复命令的嵌套

巧妙的套用 -----重复命令的嵌套 翠北实验小学 唐峰飚 命令语句 repeat n [重复命令组] 作用:将方括号里面的内容重复执行的次数。 任务一:请画出下面图形 任务二:请用重复命令画出等边三角形 任务三:请画出五个等边三角形 repeat n [重复命令组] 任务四:请画出30个正方形,边长100 任务五:P26 显身手,三选一 * * Repeat 5 [ ] 长100 Fd 100 bk rt 360/5 Fd Fd Fd Fd ? Fd 100 rt 120 ? Fd rt ? Fd rt Repeat 3 [fd 100 rt 120] Repeat 3 [fd 100 rt 120] rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 repeat [ ] Repeat 3 [fd 100 rt 120] rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 Repeat 3 rt 360/5 Repeat 3 [fd 100 rt 120] rt 360/5 ? repeat 4[fd 100 rt 90] ? repeat [ ] rt 360/ ] 五角星:repeat 5[fd 40 rt 144] 六边形:repeat 6[fd 40 rt 360/6] *

文档评论(0)

1亿VIP精品文档

相关文档