W WolfCode · CSC 141
Chapter 06

String Algorithms

字符串算法

Treat strings as collections of characters. Index, slice, traverse, search, count. .split() / .join() / .strip() / [::-1] — the methods you reach for daily. Strictly aligned with Think Python §8.1–§8.10.

Strict source: Think Python §8.1–§8.10

Lessons in this chapter

  1. 06.00 Worked Example
    Walkthrough: Count Vowels
    例题: 数元音字母
    python-strings python-loops
    8 min
  2. 06.01 Exercise
    Word Count
    单词计数
    python-strings
    15 min
  3. 06.02 Exercise
    Palindrome Check
    回文判断
    python-strings
    20 min
  4. 06.03 Exercise
    Find First Match
    找首个匹配
    python-strings python-loops
    20 min
  5. 06.04 Homework
    Homework: Text Statistics
    作业: 文本统计
    python-strings python-functions python-lists
    45 min