Skip to content

Procedures and abstraction · ⁨过程与抽象⁩

English

What we'll do

  • A procedure is a named block of code you can use again and again.
  • In Python a procedure is made with def.
  • This is part of Big Idea 3: building programs from reusable parts.
中文

我们要做什么

  • 过程(procedure)是一段有名字的代码,你可以反复使用它。
  • 在 Python 里,过程用 def 来创建。
  • 这是大概念 3 的一部分:用可复用的部件来搭建程序。

Handout

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

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