- Logo Tutorial
- Logo - Home
- Logo - Introduction
- Logo - Turtle
- Logo - Controlling the Turtle & Pen
- Logo - Turtle World
- Logo - Variables
- Logo - Arithmetic Operators
- Logo - Repetition
- Logo - Randomization
- Logo - Procedures
- Logo - Recursive Procedures
- Logo - Decision Making
- Logo - Strings
- Logo - Color
- Logo Useful Resources
- Logo - Quick Guide
- Logo - Useful Resources
- Logo - Discussion
徽标 - 递归过程
在递归过程中,过程内会出现过程的重复调用。让我们考虑以下代码 -
to spiral_recur :n if :n < 1 [stop] fd :n rt 20 spiral_recur 0.95 * :n end
过程spiral_recur 已从过程主体本身调用。下面的截图显示了代码的执行和输出。