Python Tutorial
Guido van Rossum
Python Software Foundation
Email: docs@python.org
Fred L. Drake, Jr., editor
Release 2.4.3
29 March 2006
- Front Matter 前言
- Contents
- 1. Whetting Your Appetite 开胃菜
- 2. Using the Python Interpreter 使用Python解释器
- 3. More Control Flow Tools 深入流程控制
- 4. Data Structures 数据结构
- 5. Modules 模块
- 6. Input and Output 输入和输出
- 7. Errors and Exceptions 错误和异常
- 8. Classes 类
- 8.1 A Word About Terminology 术语漫谈
- 8.2 Python Scopes and Name Spaces 作用域和命名空间
- 8.3 A First Look at Classes 初识类
- 8.4 Random Remarks 一些说明
- 8.5 Inheritance 继承
- 8.6 Private Variables 私有变量
- 8.7 Odds and Ends 补充
- 8.8 Exceptions Are Classes Too 异常也是类
- 8.9 Iterators 迭代器
- 8.10 Generators 生成器
- 8.11 Generator Expressions 生成器表达式
- 9. Brief Tour of the Standard Library 标准库概览
- 9.1 Operating System Interface 操作系统接口
- 9.2 File Wildcards 文件通配符
- 9.3 Command Line Arguments 命令行参数
- 9.4 Error Output Redirection and Program Termination 错误输出重定向和程序终止
- 9.5 String Pattern Matching 字符串正则匹配
- 9.6 Mathematics 数学
- 9.7 Internet Access 互联网访问
- 9.8 Dates and Times 日期和时间
- 9.9 Data Compression 数据压缩
- 9.10 Performance Measurement 性能度量
- 9.11 Quality Control 质量控制
- 9.12 Batteries Included
- 10. Brief Tour of the Standard Library - Part II 标准库概览
- 11. What Now?
- A. Interactive Input Editing and History Substitution
- B. Floating Point Arithmetic: Issues and Limitations
- C. History and License
- D. Glossary
- Index
- About this document ...