跳到主要内容
编程入门 — Python, Java, C, SQL & Web

Python for A-Level CS

Data structures, algorithms, and OOP for Cambridge 9618.

  • python
  • 19 课程
  • 15 videos
  • 在浏览器中运行

此设备:完成 0 / 19 门课程

开始课程

每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。

本课程中的课程

显示 19 / 19 门课程

  1. Nested loops & 2-D lists A loop inside a loop · A list of lists · Loop over a grid Lesson 1 · 4 项必做任务 · ★★★ 视频
  2. 文本文件 Why files? · Open, use, close · The with block · Reading the lines Lesson 2 · 3 项必做任务 · ★★★ 视频
  3. 异常 When things go wrong · try / except · Catch the right error · finally and raise Lesson 3 · 3 项必做任务 · ★★★ 视频
  4. 栈 What is an ADT? · A stack is LIFO · push and pop with a list · peek and empty Lesson 4 · 3 项必做任务 · ★★★★ 视频
  5. 队列 A queue is FIFO · enqueue and dequeue with a list · front and empty · A note on speed Lesson 5 · 4 项必做任务 · ★★★★ 视频
  6. 链表 Nodes joined by links · A node is a small record · Walk the list · Why a linked list? Lesson 6 · 3 项必做任务 · ★★★★ 视频
  7. 搜索 Searching a list · Linear search · Binary search · Compare them Lesson 7 · 3 项必做任务 · ★★★ 视频
  8. 排序 Putting items in order · Bubble sort · Insertion sort · Compare them Lesson 8 · 3 项必做任务 · ★★★★ 视频
  9. 递归 A function that calls itself · Base case and recursive case · A worked example: factorial · How the computer runs it Lesson 9 · 3 项必做任务 · ★★★★ 视频
  10. 类与对象 A class is a blueprint · init and attributes · Methods · Enumerated types Lesson 10 · 3 项必做任务 · ★★★ 视频
  11. 继承与封装 Build on an existing class · Call the parent with super() · Override a method · Encapsulation Lesson 11 · 4 项必做任务 · ★★★★ 视频
  12. 编程范式 What is a paradigm? · Imperative and procedural · Object-oriented · Declarative Lesson 12 · 3 项必做任务 · ★★★ 视频
  13. 哈希表 Hash tables: fast lookup · A hash function · Collisions · Linear probing Lesson 13 · 3 项必做任务 · ★★★★ 视频
  14. 二叉搜索树 The BST rule · A node · Inserting a value Lesson 14 · 3 项必做任务 · ★★★★★ 视频
  15. 图 Representing a graph: adjacency list · Adding an edge · Walking the neighbours Lesson 15 · 3 项必做任务 · ★★★★★ 视频
  16. Classes with private attributes Private attributes keep the data safe · Getters and setters · Double underscores use name mangling · A list of objects Lesson 16 · 3 项必做任务 · ★★★★
  17. Stacks and queues in fixed lists The exam's way: a fixed list and pointers · Why global? · A circular queue in a fixed list Lesson 17 · 2 项必做任务 · ★★★★
  18. Records in a text file Read every line with readline() · Catch a missing file · Write records back to a file Lesson 18 · 3 项必做任务 · ★★★★
  19. Recursive binary search and random numbers Binary search, written recursively · Random numbers Lesson 19 · 2 项必做任务 · ★★★★
Open the Python reference Every topic in one place, with short examples you can run.

深入学习入口

登录或创建账户

IGCSE, A-Level & AP