ข้ามไปยังเนื้อหา
เรียนรู้การเขียนโค้ด — Python, Java, C, SQL & Web

Python for A-Level CS

Data structures, algorithms, and OOP for Cambridge 9618.

  • Python
  • 19 บทเรียน
  • 15 videos
  • ทำงานบนเบราว์เซอร์ของคุณ

บนอุปกรณ์นี้: สำเร็จ 0 จาก 19 บทเรียน

เริ่มหลักสูตร

ทุกบทเรียนทำงานบนเบราว์เซอร์ของคุณ — เขียนโค้ดจริง กด Run และงานจะตรวจสอบตัวเองอัตโนมัติ ฟรี ไม่ต้องสมัครบัญชี พร้อมบันทึกคำแปลคู่กับภาษาอังกฤษ

บทเรียนในหลักสูตรนี้

แสดง 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. ไฟล์ข้อความ (Text files) Why files? · Open, use, close · The with block · Reading the lines Lesson 2 · งานที่ต้องทำ 3 รายการ · ★★★ วิดีโอ
  3. ข้อยกเว้น (Exceptions) When things go wrong · try / except · Catch the right error · finally and raise Lesson 3 · งานที่ต้องทำ 3 รายการ · ★★★ วิดีโอ
  4. สแต็ก (Stacks) What is an ADT? · A stack is LIFO · push and pop with a list · peek and empty Lesson 4 · งานที่ต้องทำ 3 รายการ · ★★★★ วิดีโอ
  5. คิว (Queues) A queue is FIFO · enqueue and dequeue with a list · front and empty · A note on speed Lesson 5 · งานที่ต้องทำ 4 รายการ · ★★★★ วิดีโอ
  6. ลิงค์ลิสต์ (Linked lists) Nodes joined by links · A node is a small record · Walk the list · Why a linked list? Lesson 6 · งานที่ต้องทำ 3 รายการ · ★★★★ วิดีโอ
  7. การค้นหา (Searching) Searching a list · Linear search · Binary search · Compare them Lesson 7 · งานที่ต้องทำ 3 รายการ · ★★★ วิดีโอ
  8. การจัดเรียง (Sorting) Putting items in order · Bubble sort · Insertion sort · Compare them Lesson 8 · งานที่ต้องทำ 3 รายการ · ★★★★ วิดีโอ
  9. Recursion A function that calls itself · Base case and recursive case · A worked example: factorial · How the computer runs it Lesson 9 · งานที่ต้องทำ 3 รายการ · ★★★★ วิดีโอ
  10. คลาส & วัตถุ (Classes & objects) A class is a blueprint · init and attributes · Methods · Enumerated types Lesson 10 · งานที่ต้องทำ 3 รายการ · ★★★ วิดีโอ
  11. Inheritance & encapsulation Build on an existing class · Call the parent with super() · Override a method · Encapsulation Lesson 11 · งานที่ต้องทำ 4 รายการ · ★★★★ วิดีโอ
  12. รูปแบบการเขียนโปรแกรม (Programming paradigms) What is a paradigm? · Imperative and procedural · Object-oriented · Declarative Lesson 12 · งานที่ต้องทำ 3 รายการ · ★★★ วิดีโอ
  13. Hash tables Hash tables: fast lookup · A hash function · Collisions · Linear probing Lesson 13 · งานที่ต้องทำ 3 รายการ · ★★★★ วิดีโอ
  14. Binary search trees The BST rule · A node · Inserting a value Lesson 14 · งานที่ต้องทำ 3 รายการ · ★★★★★ วิดีโอ
  15. Graphs 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