全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Nested loop?

Definition 16.5 Primary & Middle School Computer Science · 第 16 章 — Repeating with for: Turtle Drawings

A nested loop is a loop written inside the block of another loop. If the outer loop runs aa times and the inner loop bb times, the inner block runs a×ba \times b times.

The outer loop runs 5 times; each time, the inner loop draws the 4 sides of one square, then the turtle moves on with its pen up.
The outer loop runs 5 times; each time, the inner loop draws the 4 sides of one square, then the turtle moves on with its pen up.
在原文中阅读 →