Skip to content

Exceptions · ⁨异常处理⁩

English

When things go wrong

  • A runtime error normally crashes the program.
  • An exception is Python's signal that something went wrong.
  • Exception handling lets you catch it and keep running.
中文

出错的时候

  • 运行时错误通常会让程序崩溃。
  • 异常(exception)是 Python 发出的"出问题了"的信号。
  • 异常处理让你捕获它,并继续运行。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩