小说
|
文艺
|
生活
|
社科
|
IT
|
经管
|
科技
|
教育
|
专题
|
排行
|
精品
首页
我的社区
出版
论坛
我要写书
登录
注册
我的社区
帮助
17xie
>>
计算机/网络
>>
程序开发
>> Python 语言参考手册
图书
用户
Python 语言参考手册
[最后更新:2008-03-15]
第一作者:
python
所属分类:
计算机/网络
→
程序开发
图书编号:
26387504
本书标签:
程序开发
中文手册
python
语言参考
作品性质:
访问链接:
http://www.17xie.com/book-26387504.html
[
点击复制
]
统计信息:
[字数:246897] [页数:44] [人气:39799] [创作人次:45]
创建时间:
2008-03-12 13:36:37
[寻求出版]
内容简介
Python(发音:[ 'paiθ(ə)n; (US) 'paiθɔn ]),是一种面向对象的解释性的计算机程序设计语言,也是一种功能强大而完善的通用型语言,已经具有十多年的发展历史,成熟且稳定。Python 具有脚本语言中最丰富和强大的类库,足以支持绝大多数日常应用。
这种语言具有非常简捷而清晰的语法特点,适合完成各种高层任务,几乎可以在所有的操作系统中运行。
目前,基于这种语言的相关技术正在飞速的发展,用户数量急剧扩大,相关的资源非常多。
本书目录
编辑书稿
Python 语言参考手册Python Reference Manual
1
前言 Front Matter
2
1. 简介 Introduction
3
1.1 记法 Notation
4
2. 词法分析 Lexical analysis
5
2.1 行结构 Line structure
6
2.1.1 逻辑行 Logical lines
6
2.1.2 物理行 Physical lines
6
2.1.3 注释 Comments
6
2.1.4 Encoding declarations
6
2.1.5 显式行连接 Explicit line joining
7
2.1.6 隐式行连接 Implicit line joining
7
2.1.7 空行 Blank lines
7
2.1.8 缩进 Indentation
7
2.1.9 符号间的空白 Whitespace between tokens
7
2.2 其它语言符号 Other tokens
8
2.3 标识符和关键字 Identifiers and keywords
9
2.3.1 关键字 Keywords
9
2.3.2 保留的标识符类型 Reserved classes of identifiers
9
2.4 字面值 Literals
10
2.4.1 串字面值 String literals
10
2.4.2 串字面值的连接 String literal concatenation
10
2.4.3 数值型的字面值 Numeric literals
10
2.4.4 整数和长整数型的字面值 Integer and long integer
11
literals
11
2.4.5 浮点型的字面值 Floating point literals
11
2.4.6 虚数的字面值 Imaginary literals
11
2.5 运算符 Operators
12
2.6 分隔符 Delimiters
12
3. !!数据模型 Data model
13
3.1 对象, 值和类型 Objects, values and types
13
3.2 标准类型层次 The standard type hierarchy
14
3.3 特殊方法名 Special method names
15
3.3.1 基本定制 Basic customization
15
3.3.2 定制属性访问 Customizing attribute access
16
3.3.3 Customizing class creation
17
3.3.4 模拟可调用对象 Emulating callable objects
17
3.3.5 模拟包容器类型 Emulating container types
17
3.3.6 模拟有序类型的其它方法
18
3.3.7 模拟数值类型 Emulating numeric types
18
3.3.8 强制规则: Coercion rules
18
4.1 !!! 代码块, 运行结构框架和命名空间 Naming and binding
19
4.1.1 Interaction with dynamic features
19
4.2 异常 Exceptions
20
5. 表达式 Expressions
21
5.1 数值型间的转换 Arithmetic conversions
21
5.2 原子 Atoms
22
5.2.1 标识符(名字) Identifiers (Names)
22
5.2.2 字面值 Literals
22
5.2.3 括号表达式 Parenthesized forms
22
5.2.4 列表的表示 List displays
23
5.2.5 字典的表示 Dictionary displays
23
5.2.6 串的转换 String conversions
23
5.3 基元 Primaries
24
5.3.1 属性引用 Attribute references
24
5.3.2 下标 Subscriptions
24
5.3.3 片断 Slicings
25
5.3.4 调用 Calls
25
5.4 幂运算符 The power operator
26
5.5 一元算术运算符 Unary arithmetic operations
26
5.6 二元算术运算符 Binary arithmetic operations
27
5.7 移位运算符 Shifting operations
27
5.8 二元位运算符 Binary bit-wise operations
28
5.9 比较 Comparisons
28
5.10 布尔运算 Boolean operations
29
5.11 Lambda形式(lambda表达式) Lambdas
29
5.12 表达式表 Expression lists
30
5.13 Evaluation order
30
5.14 总结 Summary
30
6. 简单语句 Simple statements
31
6.1 表达式语句 Expression statements
31
6.2 断言语句 Assert statements
31
6.3 赋值语句 Assignment statements
32
6.3.1 增量赋值语句 Augmented assignment statements
32
6.4 pass语句 The pass statement
33
6.5 del 语句 The del statement
33
6.6 print语句 The print statement
33
6.7 return语句 The return statement
34
6.8 yield语句 The yield statement
34
6.9 raise语句 The raise statement
34
6.10 break语句 The break statement
35
6.11 continue语句 The continue statement
35
6.12 import 语句 The import statement
36
6.12.1 Future statements
36
6.13 global语句 The global statement
37
6.14 exec 语句 The exec statement
37
7. 复合语句 Compound statements
38
7.1 if 语句 The if statement
39
7.2 while语句 The while statement
39
7.3 for语句 The for statement
39
7.4 try语句 The try statement
40
7.5 函数定义 Function definitions
40
7.6 类定义 Class definitions
40
8. 顶层构件 Top-level components
41
8.1 完整的Python程序 Complete Python programs
41
8.2 文件输入 File input
41
8.3 交互式输入 Interactive input
41
8.4 表达式输入 Expression input
41
A. History and License
42
A.1 History of the software
42
A.2 Terms and conditions for accessing or otherwise
42
using Python
42
B. 修正记录
43
C. 翻译团队
44
更新日志
查看全部更新日志
用户
行为
时间
月落晨星
修改标题,旧标题[
新建页面44
],新标题[
C. 翻译团队
]
7个月以前
[03-15 21:32]
月落晨星
修改[
新建页面44
],生成新版本[
1
]
7个月以前
[03-15 21:32]
月落晨星
创建[
新建页面44
]
7个月以前
[03-15 21:31]
月落晨星
修改标题,旧标题[
新建页面43
],新标题[
B. 修正记录
]
7个月以前
[03-15 21:31]
月落晨星
修改[
新建页面43
],生成新版本[
1
]
7个月以前
[03-15 21:31]
月落晨星
创建[
新建页面43
]
7个月以前
[03-15 21:28]
月落晨星
修改标题,旧标题[
新建页面42
],新标题[
A. History and License
]
7个月以前
[03-15 21:28]
月落晨星
修改[
新建页面42
],生成新版本[
1
]
7个月以前
[03-15 21:28]
月落晨星
创建[
新建页面42
]
7个月以前
[03-15 21:27]
月落晨星
修改标题,旧标题[
新建页面41
],新标题[
8. 顶层构件 Top-level components
]
7个月以前
[03-15 21:26]
最新讨论
进入本书讨论区
主题
发贴人
时间
支持
[游客]
06-12 09:52
支持
[游客]
06-12 09:52
不错
[游客]
06-12 09:52
不错
[游客]
06-12 09:52
不错
[游客]
06-12 09:52
不错
[游客]
06-12 09:52
好
[游客]
06-12 09:51
好
[游客]
06-12 09:51
好
[游客]
06-12 09:51
顶
月落晨星
03-15 21:42
用户:
匿名发表
内容:
发帖请遵守国家相关法规
17xie有权删除不恰当的帖子
本书获得鲜花
10朵
鲜花有什么用?
·最近送花人:
·全部参与者:共2人 (按贡献度排名)
月落晨星
2391
python
1
·责任编辑:
月落晨星
相关图书推荐
Visual C++程序设计
作者:
果冻
更新:2007-10-09
字数:442058
人气:239037
级别:B
Visual Basic 6.0中
作者:
我爱钱
更新:2007-09-12
字数:377014
人气:138913
级别:B
Quick BASIC程序设计
作者:
我爱钱
更新:2007-09-12
字数:326386
人气:106336
级别:B
Visual Basic程序设
作者:
我爱钱
更新:2008-05-05
字数:378288
人气:91720
级别:B
关于我们
|
版权声明
|
免责声明
|
诚聘英才
|
联系我们
|
合作伙伴
|
友情链接
|
提交意见
Copyright
©
2007 17xie.com 互联网协同写书平台
京ICP备08002671号