全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Instruction?

Definition 2.1 Primary & Middle School Computer Science · 第 2 章 — Instructions in Order

An instruction is one step that tells exactly what to do: “take two slices of bread”, “turn left”, “stop”.

示例

Example 2.2 (Brushing your teeth)

1. Wet the toothbrush. 2. Put toothpaste on the toothbrush. 3. Brush your teeth for two minutes. 4. Rinse your mouth. 5. Rinse the toothbrush. Each line is one instruction.

Example 2.7 (Fixing Sami’s sequence)

With a finger: forward, forward, forward — the finger is three squares to the right of S. The flag is four squares to the right, so the next instruction should be “forward” again, not “left”. The fourth instruction is the wrong one. The fixed sequence is forward four times, left, then forward three times: the robot goes up the column of the flag and stops on it.

在原文中阅读 →