Python基础 · 免费预览

用列表存储多个值

解释列表是什么。创建由简单值组成的列表并做索引。修改单个元素的值。向已有列表追加值。对列表元素重新排序并做切片。创建和操作嵌套列表。

1. Overview

Overview

2. Python lists

Python lists

3. Ch-Ch-Ch-Ch-Changes

Ch-Ch-Ch-Ch-Changes

4. Nested Lists

Nested Lists

5. Heterogeneous Lists

Heterogeneous Lists

6. Slicing From the End

Slicing From the End

7. Non-Continuous Slices

Non-Continuous Slices

8. Overloading

Overloading

9. Visual intuition for indexing versus slicing

Visual intuition for indexing versus slicing

进入交互式练习

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

免费开始这门课