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
- 06.00 Worked ExampleWalkthrough: Count Vowels例题: 数元音字母python-strings python-loops8 min
- 06.01 ExerciseWord Count单词计数python-strings15 min
- 06.02 ExercisePalindrome Check回文判断python-strings20 min
- 06.03 ExerciseFind First Match找首个匹配python-strings python-loops20 min
- 06.04 HomeworkHomework: Text Statistics作业: 文本统计python-strings python-functions python-lists45 min