Python基础 · 免费预览

条件判断

编写包含 `if`、`elif` 和 `else` 分支的条件语句。正确求值包含 `and` 和 `or` 的表达式。

1. Overview

Overview

2. Conditionals

Conditionals

3. Comparing in Python

Comparing in Python

4. `True` and `False`

True and False

5. Checking our Data

Checking our Data

6. How Many Paths?

How Many Paths?

7. What Is Truth?

What Is Truth?

8. That's Not Not What I Meant

That's Not Not What I Meant

9. Close Enough

Close Enough

10. In-Place Operators

In-Place Operators

11. Sorting a List Into Buckets

Sorting a List Into Buckets

12. Counting Vowels

Counting Vowels

进入交互式练习

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

免费开始这门课