全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Syntax error, runtime error, logic error?

又称: syntax error · runtime error · logic error

Definition 23.2 Primary & Middle School Computer Science · 第 23 章 — Finding and Fixing Bugs

A syntax error breaks the rules of the language: Python refuses to start the program at all. A runtime error happens while the program runs: it starts, then stops at a line that cannot be carried out. A logic error lets the program run to the end, but with a wrong result.

Three questions tell the three kinds of error apart. “No bug found” is not “no bug”: it only means that this run gave the right answer.
Three questions tell the three kinds of error apart. “No bug found” is not “no bug”: it only means that this run gave the right answer.
在原文中阅读 →