Files
weread-notes/notes/Python编程:从入门到实践.md
2026-06-15 23:00:02 +08:00

27 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Python编程从入门到实践
> 作者:埃里克·马瑟斯
> 同步时间2026-06-15 22:59
---
## 划线笔记
### 第3章 列表简介
> 如果你要从列表中删除一个元素且不再以任何方式使用它就使用del语句如果你要在删除元素后还能继续使用它就使用方法pop()。
> [2021-07-18 16:36]
> 方法reverse()永久性地修改列表元素的排列顺序但可随时恢复到原来的排列顺序为此只需对列表再次调用reverse()即可
> [2021-07-18 16:36]
> 在你需要完成如下任务时len()很有用:确定还有多少个外星人未被射杀,需要管理多少项可视化数据,网站有多少注册用户等。
> [2021-07-18 16:36]
> 在Web应用程序中你可能要将用户从活跃成员列表中删除并将其加入到非活跃成员列表中。
> [2021-07-18 16:36]
### 第4章 操作列表
> Python通过使用缩进让代码更易读简单地说它要求你使用缩进让代码整洁而结构清晰。在较长的Python程序中你将看到缩进程度各不相同的代码块这让你对程序的组织结构有大致的认识。
> [2021-07-18 16:36]