欢迎来到天天文库
浏览记录
ID:52447603
大小:219.50 KB
页数:12页
时间:2020-04-07
《巧妙的套用 -----重复命令的嵌套.ppt》由会员上传分享,免费在线阅读,更多相关内容在PPT专区-天天文库。
1、巧妙的套用-----重复命令的嵌套翠北实验小学唐峰飚命令语句repeatn[重复命令组]作用:将方括号里面的内容重复执行的次数。任务一:请画出下面图形Repeat5[]长100Fd100bkrt360/5FdFdFdFd任务二:请用重复命令画出等边三角形?Fd100rt120?Fdrt?FdrtRepeat3[fd100rt120]任务三:请画出五个等边三角形Repeat3[fd100rt120]rt360/5Repeat3rt360/5Repeat3rt360/5Repeat3rt360/5Repeat3rt360/5repeatn[重复命令
2、组]repeat[]Repeat3[fd100rt120]rt360/5Repeat3rt360/5Repeat3rt360/5Repeat3rt360/5Repeat3rt360/5Repeat3[fd100rt120]rt360/5嵌套嵌套任务四:请画出30个正方形,边长100?repeat4[fd100rt90]?repeat[]rt360/]任务五:P26显身手,三选一五角星:repeat5[fd40rt144]六边形:repeat6[fd40rt360/6]五角星:repeat5[fd100rt144]六边形:repeat6[fd40
3、rt360/6]repeat5[repeat6[fd40lt60]]大五角星:repeat5[fd100rt144]小五角星:repeat5[fd40rt144]repeat5[repeat5[fd40rt144]]大五角星:repeat5[fd100rt144]中五角星:repeat5[fd40rt144]小五角星:repeat5[fd20rt144]repeat5[fd100repeat5[fd40repeat5[fd20rt144]rt144]rt144]
此文档下载收益归作者所有