Python基础 · 免费预览

迭代协议与函数式工具

在自己的类上实现迭代协议,用 zip 并行走多个序列,并用内置的函数式工具做映射与筛选。

1. Overview

Overview

2. Making Your Own Iterable

Making Your Own Iterable

3. Walking Sequences Together

Walking Sequences Together

4. map and filter

map and filter

5. Asking Questions of a Sequence

Asking Questions of a Sequence

6. Days and Readings

Days and Readings

7. A Countdown Iterable

A Countdown Iterable

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课