Python3.2.3 官方文档翻译 译者 夜深人静后的码农
吐槽博客: http://blog.csdn.net/sxb0841901116
3.6 遍历技巧............................................................................................................................43
3.7 深入条件控制....................................................................................................................44
第四章 模块.....................................................................................................................................45
4.1 深入模块............................................................................................................................47
4.1.1 像脚本一样执行 python........................................................................................ 48
4.1.2 模块的搜索路径.....................................................................................................48
4.1.3 编译 python 文件....................................................................................................49
4.2 标准接口............................................................................................................................49
4.3 dir()函数..............................................................................................................................50
4.4 包........................................................................................................................................51
4.4.1 从包中导入*...........................................................................................................53
4.4.2 包内引用.................................................................................................................54
4.4.3 跨目录的包.............................................................................................................55
第五章 输入输出.............................................................................................................................55
5.1 格式化输出........................................................................................................................55
5.1.1 旧式字符串格式化.................................................................................................60
5.2 文件读写.............................................................................................................................60
5.2.1 文件对象中方法.....................................................................................................61
5.2.2 pickle 模块...............................................................................................................63
第六章 类.........................................................................................................................................64
6.1 名称和对象相关术语........................................................................................................65
6.2 Python 作用域和命名空间................................................................................................ 65
6.2.1 作用域和命名空间实例.........................................................................................67
6.3 初识类................................................................................................................................68
6.3.1 类定义语法.............................................................................................................68
6.3.2 类对象.....................................................................................................................68
6.3.3 实例对象.................................................................................................................70
6.3.4 方法对象.................................................................................................................70
6.4 一些说明............................................................................................................................71
6.5 继承....................................................................................................................................72
6.5.1 多重继承.................................................................................................................73
评论0
最新资源