Python 入门 -- 目录
- 1 -
目录
Python 入门 ......................................................................................................................................1
目录 ..................................................................................................................................................1
第一章 介绍 ....................................................................................................................................1
第二章 解释程序的使用.................................................................................................................2
第三章 基本使用.............................................................................................................................3
3.1 用 Python 作计算器使用 ..................................................................................................3
3.2. 字符串...............................................................................................................................4
3.3 列表....................................................................................................................................8
3.4 编程初步............................................................................................................................9
第四章 流程控制...........................................................................................................................12
4.1 If 语句..............................................................................................................................12
4.2 for 语句............................................................................................................................12
4.3 range() 函数.....................................................................................................................13
4.4 break 语句,continue 语句和循环中的 else 子句 ..........................................................14
4.5 pass 语句..........................................................................................................................14
4.6 函数定义..........................................................................................................................15
4.7 函数参数..........................................................................................................................17
4.7.1 参数缺省值...........................................................................................................17
4.7.2 关键字参数...........................................................................................................18
4.7.3 任意个数参数.......................................................................................................19
4.7.4 Lambda 形式..........................................................................................................20
4.7.5 文档字符串...........................................................................................................20
第五章 Python 数据结构 ..............................................................................................................21
5.1 列表..................................................................................................................................21
5.1.1 函数程序设计工具...............................................................................................22
5.2 del 语句.............................................................................................................................23
5.3 序表和序列......................................................................................................................24
5.4 字典..................................................................................................................................25
5.5 条件的进一步讨论..........................................................................................................26
5.6 序列与其它类型的比较..................................................................................................26
第六章 模块...................................................................................................................................28
6.1 模块的进一步介绍..........................................................................................................29
6.1.1 模块搜索路径.......................................................................................................30
6.1.2 “编译”的 Python 文件...........................................................................................30
6.2 标准模块..........................................................................................................................31
6.3 dir()函数 ...........................................................................................................................31
6.4 包......................................................................................................................................32
6.4.1 从包中导入*.........................................................................................................34
6.4.2 包内部引用...........................................................................................................35
第七章 输入输出...........................................................................................................................36
7.1 输出格式控制..................................................................................................................36
评论0