python手册中文版-Python中文文档

Python是一款面向对象和解释型计算机程序设计语言,拥有高级数据架构,可以进行各种复杂的面向对象编程。为了方便大家学习,小编带来了Python中文手册 chm版,有学习python语言的朋友可以下载!

101737_42464979.jpg

Python基本介绍

Python拥有一个强大的标准库。Python语言的核心只包含数字、字符串、列表、字典、文件等常见类型和函数,而由Python标准库提供了系统管理、网络通信、文本处理、数据库接口、图形系统、XML处理等额外的功能。Python标准库命名接口清晰、文档良好,很容易学习和使用。

Python中文手册目录

Contents

1. 开胃菜 Whetting Your Appetite

2. 使用Python解释器 Using the Python Interpreter

2.1 调用解释器 Invoking the Interpreter

2.1.1 参数传递 Argument Passing

2.1.2 交互模式 Interactive Mode

2.2 解释器及其环境 The Interpreter and Its Environment

2.2.1 错误处理 Error Handling

2.2.2 执行Python脚本 Executable Python Scripts

2.2.3 源程序编码 Source Code Encoding

2.2.4 交互式环境的启动文件 The Interactive Startup File

3. Python简介 An Informal Introduction to Python

3.1 将Python当作计算器使用 Using Python as a Calculator

3.1.1 数值 Numbers

3.1.2 字符串 Strings

3.1.3 Unicode 字符串 Unicode Strings

3.1.4 链表 Lists

3.2 开始编程 First Steps Towards Programming

4. 深入流程控制 More Control Flow Tools

4.1 if 语句 if Statements

4.2 for 语句 for Statements

4.3 range() 函数 The range() Function

4.4 break 和 continue 语句, 以及 循环中的 else 子句 break and continue Statements, and else Clauses on Loops

4.5 pass 语句 pass Statements

4.6 Defining Functions

4.7 深入函数定义 More on Defining Functions

4.7.1 参数默认值 Default Argument Values

4.7.2 关键字参数 Keyword Arguments

4.7.3 可变参数表 Arbitrary Argument Lists

4.7.4 参数列表的分拆 Unpacking Argument Lists

4.7.5 Lambda 形式 Lambda Forms

4.7.6 文档字符串 Documentation Strings

5. 数据结构 Data Structures

5.1 深入链表 More on Lists

5.1.1 把链表当作堆栈使用 Using Lists as Stacks

5.1.2 把链表当作队列使用 Using Lists as Queues

5.1.3 函数化编程工具 Functional Programming Tools

5.1.4 链表推导式 List Comprehensions

5.2 del 语句

5.3 元组(Tuples)和序列(Sequences )Tuples and Sequences

5.4 Dictionaries 字典

5.5 循环技巧 Looping Techniques

5.6 深入条件控制 More on Conditions

5.7 比较序列和其它类型 Comparing Sequences and Other Types

6. 模块 Modules

6.1 深入模块 More on Modules

6.1.1 模块搜索路径 The Module Search Path

6.1.2 "编译”Python文件 ``Compiled'' Python files

6.2 标准模块 Standard Modules

6.3 dir() 函数 dir() Function

6.4 包 Packages

6.4.1 以 * 方式加载包 Importing * From a Package

6.4.2 内置包(Intra-package)参考 Intra-package References

6.4.3 多重路径中的包 Packages in Multiple Directories

7. 输入和输出 Input and Output

7.1 设计输出格式 Fancier Output Formatting

7.2 读写文件 Reading and Writing Files

7.2.1 文件对象(file object)的方法 Methods of File Objects

7.2.2 pickle 模块 pickle Module

8. 错误和异常 Errors and Exceptions

8.1 异常 Exceptions

8.2 处理异常 Handling Exceptions

8.3 抛出异常 Raising Exceptions

8.4 用户自定义异常 User-defined Exceptions

8.5 定义清理行为 Defining Clean-up Actions

9. 类 Classes

9.1 有关术语的话题 A Word About Terminology

9.2 Python 作用域和命名空间 Python Scopes and Name Spaces

9.3 初识类 A First Look at Classes

9.3.1 类定义语法 Class Definition Syntax

9.3.2 类对象 Class Objects

9.3.3 实例对象 Instance Objects

9.3.4 方法对象 Method Objects

9.4 一些说明 Random Remarks

9.5 继承 Inheritance

9.5.1 多继承 Multiple Inheritance

9.6 私有变量 Private Variables

9.7 补充 Odds and Ends

9.8 异常也是类 Exceptions Are Classes Too

9.9 迭代器 Iterators

9.10 生成器 Generators

10. 标准库概览 Brief Tour of the Standard Library

10.1 操作系统概览 Operating System Interface

10.2 文件通配符 File Wildcards

10.3 命令行参数 Command Line Arguments

10.4 错误输出重定向和程序终止 Error Output Redirection and Program Termination

10.5 字符串正则匹配 String Pattern Matching

10.6 数学 Mathematics

10.7 互联网访问 Internet Access

10.8 日期和时间 Dates and Times

10.9 数据压缩 Data Compression

10.10 性能度量 Performance Measurement

10.11 质量控制 Quality Control

10.12 Batteries Included

11. What Now?

A. Interactive Input Editing and History Substitution

A.1 Line Editing

A.2 History Substitution

A.3 Key Bindings

A.4 Commentary

B. Floating Point Arithmetic: Issues and Limitations

B.1 Representation Error

C. History and License

D. Glossary

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Python 是一种易于学习又功能强大的编程语言。它提供了高效的高级数据结构,还有简单有效的面向对象编程。Python 优雅的语法和动态类型,以及解释型语言的本质,使它成为多数平台上写脚本和快速开发应用的理想语言。 Python 解释器及丰富的标准库以源码或机器码的形式提供,可以到 Python 官网 https://www.python.org/ 免费获取适用于各个主要系统平台的版本,并可自由地分发。这个网站还包含许多免费第三方 Python 模块、程序和工具以及附加文档的发布页面或链接。 Python 解释器易于扩展,可以使用 C 或 C++(或者其他可以通过 C 调用的语言)扩展新的功能和数据类型。Python 也可用于可定制化软件中的扩展程序语言。 这个教程非正式地介绍 Python 语言和系统的基本概念和功能。最好在阅读的时候准备一个 Python 解释器进行练习,不过所有的例子都是相互独立的,所以这个教程也可以离线阅读。 有关标准的对象和模块,参阅 Python 标准库。Python 语言参考 提供了更正式的语言参考。想要编写 C 或者 C++ 扩展可以参考 扩展和嵌入 Python 解释器 和 Python/C API 参考手册。也有不少书籍深入讲解Python 。 这个教程并没有完整包含每一个功能,甚至常用功能可能也没有全部涉及。这个教程只介绍 Python 中最值得注意的功能,也会让你体会到这个语言的风格特色。学习完这个教程,你将可以阅读和编写 Python 模块和程序,也可以开始学习更多的 Python 库模块,详见 Python 标准库。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值