页面导航: 首页脚本专栏python → 正文内容

简明 Python 基础学习教程

发布:dxy 字体:[增加 减小] 类型:转载

版本:1.20

A Byte of Python
Copyright © 2003-2005 Swaroop C H
简明 Python 教程
《简明 Python 教程》为 "A Byte of Python" 的唯一指定简体中文译本,版权 © 2005 沈洁元

本书依照 创作公用约定(署名-非派生作品-非商业用途) 发布。

概要

无论您刚接触电脑还是一个有经验的程序员,本书都将有助您学习使用Python语言。


python_cn/chinese/pr01.html">
前言
python_cn/chinese/pr01.html#s01">本书的读者
python_cn/chinese/pr01s02.html">本书的由来
python_cn/chinese/pr01s03.html">本书目前的状况
python_cn/chinese/pr01s04.html">官方网站
python_cn/chinese/pr01s05.html">约定条款
python_cn/chinese/pr01s06.html">欢迎给我反馈
python_cn/chinese/pr01s07.html">值得思考的一些东西
1. python_cn/chinese/ch01.html">介绍
python_cn/chinese/ch01.html#s01">简介
python_cn/chinese/ch01s02.html">Python的特色
     python_cn/chinese/ch01s02.html#summary">概括
python_cn/chinese/ch01s03.html">为什么不使用Perl?
python_cn/chinese/ch01s04.html">程序员的话
2. python_cn/chinese/ch02.html">安装Python
python_cn/chinese/ch02.html#s01">Linux和BSD用户
python_cn/chinese/ch02s02.html">Windows®用户
python_cn/chinese/ch02s03.html">概括
3. python_cn/chinese/ch03.html">最初的步骤
python_cn/chinese/ch03.html#s01">简介
python_cn/chinese/ch03s02.html">使用带提示符的解释器
python_cn/chinese/ch03s03.html">挑选一个编辑器
python_cn/chinese/ch03s04.html">使用源文件
     python_cn/chinese/ch03s04.html#output">输出
     python_cn/chinese/ch03s04.html#how">它如何工作
python_cn/chinese/ch03s05.html">可执行的Python程序
python_cn/chinese/ch03s06.html">获取帮助
python_cn/chinese/ch03s07.html">概括
4. python_cn/chinese/ch04.html">基本概念
python_cn/chinese/ch04.html#s01">字面意义上的常量
python_cn/chinese/ch04s02.html">数
python_cn/chinese/ch04s03.html">字符串
python_cn/chinese/ch04s04.html">变量
python_cn/chinese/ch04s05.html">标识符的命名
python_cn/chinese/ch04s06.html">数据类型
python_cn/chinese/ch04s07.html">对象
     python_cn/chinese/ch04s07.html#output">输出
     python_cn/chinese/ch04s07.html#how">它如何工作
python_cn/chinese/ch04s08.html">逻辑行与物理行
python_cn/chinese/ch04s09.html">缩进
python_cn/chinese/ch04s10.html">概括
5. python_cn/chinese/ch05.html">运算符与表达式
python_cn/chinese/ch05.html#s01">简介
python_cn/chinese/ch05s02.html">运算符
python_cn/chinese/ch05s03.html">运算符优先级
     python_cn/chinese/ch05s03.html#order">计算顺序
     python_cn/chinese/ch05s03.html#associativity">结合规律
python_cn/chinese/ch05s04.html">表达式
     python_cn/chinese/ch05s04.html#using">使用表达式
python_cn/chinese/ch05s05.html">概括
6. python_cn/chinese/ch06.html">控制流
python_cn/chinese/ch06.html#s01">简介
python_cn/chinese/ch06s02.html">if语句
     python_cn/chinese/ch06s02.html#using">使用if语句
     python_cn/chinese/ch06s02.html#how">它如何工作
python_cn/chinese/ch06s03.html">while语句
     python_cn/chinese/ch06s03.html#using">使用while语句
python_cn/chinese/ch06s04.html">for循环
     python_cn/chinese/ch06s04.html#using">使用for语句
python_cn/chinese/ch06s05.html">break语句
     python_cn/chinese/ch06s05.html#using">使用break语句
python_cn/chinese/ch06s06.html">continue语句
     python_cn/chinese/ch06s06.html#using">使用continue语句
python_cn/chinese/ch06s07.html">概括
7. python_cn/chinese/ch07.html">函数
python_cn/chinese/ch07.html#s01">简介
     python_cn/chinese/ch07.html#defining">定义函数
python_cn/chinese/ch07s02.html">函数形参
     python_cn/chinese/ch07s02.html#using">使用函数形参
python_cn/chinese/ch07s03.html">局部变量
     python_cn/chinese/ch07s03.html#local">使用局部变量
     python_cn/chinese/ch07s03.html#global">使用global语句
python_cn/chinese/ch07s04.html">默认参数值
     python_cn/chinese/ch07s04.html#using">使用默认参数值
python_cn/chinese/ch07s05.html">关键参数
     python_cn/chinese/ch07s05.html#using">使用关键参数
python_cn/chinese/ch07s06.html">return语句
     python_cn/chinese/ch07s06.html#using">使用字面意义上的语句
python_cn/chinese/ch07s07.html">DocStrings
     python_cn/chinese/ch07s07.html#using">使用DocStrings
python_cn/chinese/ch07s08.html">概括
8. python_cn/chinese/ch08.html">模块
python_cn/chinese/ch08.html#s01">简介
     python_cn/chinese/ch08.html#using">使用sys模块
python_cn/chinese/ch08s02.html">字节编译的.pyc文件
python_cn/chinese/ch08s03.html">from..import语句
python_cn/chinese/ch08s04.html">模块的__name__
     python_cn/chinese/ch08s04.html#using">使用模块的__name__
python_cn/chinese/ch08s05.html">制造你自己的模块
     python_cn/chinese/ch08s05.html#creating">创建你自己的模块
     python_cn/chinese/ch08s05.html#from">from..import
python_cn/chinese/ch08s06.html">dir()函数
     python_cn/chinese/ch08s06.html#using">使用dir函数
python_cn/chinese/ch08s07.html">概括
9. python_cn/chinese/ch09.html">数据结构
python_cn/chinese/ch09.html#s01">简介
python_cn/chinese/ch09s02.html">列表
     python_cn/chinese/ch09s02.html#quick">对象与类的快速入门
     python_cn/chinese/ch09s02.html#using">使用列表
python_cn/chinese/ch09s03.html">元组
     python_cn/chinese/ch09s03.html#using">使用元组
     python_cn/chinese/ch09s03.html#tuples">元组与打印语句
python_cn/chinese/ch09s04.html">字典
     python_cn/chinese/ch09s04.html#using">使用字典
python_cn/chinese/ch09s05.html">序列
     python_cn/chinese/ch09s05.html#using">使用序列
python_cn/chinese/ch09s06.html">参考
     python_cn/chinese/ch09s06.html#objects">对象与参考
python_cn/chinese/ch09s07.html">更多字符串的内容
     python_cn/chinese/ch09s07.html#string">字符串的方法
python_cn/chinese/ch09s08.html">概括
10. python_cn/chinese/ch10.html">解决问题——编写一个Python脚本
python_cn/chinese/ch10.html#s01">问题
python_cn/chinese/ch10s02.html">解决方案
     python_cn/chinese/ch10s02.html#first">版本一
     python_cn/chinese/ch10s02.html#second">版本二
     python_cn/chinese/ch10s02.html#third">版本三
     python_cn/chinese/ch10s02.html#fourth">版本四
     python_cn/chinese/ch10s02.html#more">进一步优化
python_cn/chinese/ch10s03.html">软件开发过程
python_cn/chinese/ch10s04.html">概括
11. python_cn/chinese/ch11.html">面向对象的编程
python_cn/chinese/ch11.html#s01">简介
python_cn/chinese/ch11s02.html">self
python_cn/chinese/ch11s03.html">类
     python_cn/chinese/ch11s03.html#creating">创建一个类
python_cn/chinese/ch11s04.html">对象的方法
     python_cn/chinese/ch11s04.html#using">使用对象的方法
python_cn/chinese/ch11s05.html">__init__方法
     python_cn/chinese/ch11s05.html#using">使用__init__方法
python_cn/chinese/ch11s06.html">类与对象的变量
     python_cn/chinese/ch11s06.html#using">使用类与对象的变量
python_cn/chinese/ch11s07.html">继承
     python_cn/chinese/ch11s07.html#using">使用继承
python_cn/chinese/ch11s08.html">概括
12. python_cn/chinese/ch12.html">输入/输出
python_cn/chinese/ch12.html#s01">文件
     python_cn/chinese/ch12.html#using">使用文件
python_cn/chinese/ch12s02.html">储存器
     python_cn/chinese/ch12s02.html#pickling">储存与取储存
python_cn/chinese/ch12s03.html">概括
13. python_cn/chinese/ch13.html">异常
python_cn/chinese/ch13.html#s01">错误
python_cn/chinese/ch13s02.html">try..except
     python_cn/chinese/ch13s02.html#handling">处理异常
python_cn/chinese/ch13s03.html">引发异常
     python_cn/chinese/ch13s03.html#how">如何引发异常
python_cn/chinese/ch13s04.html">try..finally
     python_cn/chinese/ch13s04.html#using">使用finally
python_cn/chinese/ch13s05.html">概括
14. python_cn/chinese/ch14.html">Python标准库
python_cn/chinese/ch14.html#s01">简介
python_cn/chinese/ch14s02.html">sys模块
     python_cn/chinese/ch14s02.html#command">命令行参数
     python_cn/chinese/ch14s02.html#more">更多sys的内容
python_cn/chinese/ch14s03.html">os模块
python_cn/chinese/ch14s04.html">概括
15. python_cn/chinese/ch15.html">更多Python的内容
python_cn/chinese/ch15.html#s01">特殊的方法
python_cn/chinese/ch15s02.html">单语句块
python_cn/chinese/ch15s03.html">列表综合
     python_cn/chinese/ch15s03.html#using">使用列表综合
python_cn/chinese/ch15s04.html">在函数中接收元组和列表
python_cn/chinese/ch15s05.html">lambda形式
     python_cn/chinese/ch15s05.html#using">使用lambda形式
python_cn/chinese/ch15s06.html">exec和eval语句
python_cn/chinese/ch15s07.html">assert语句
python_cn/chinese/ch15s08.html">repr函数
python_cn/chinese/ch15s09.html">概括
16. python_cn/chinese/ch16.html">接下来学习什么?
python_cn/chinese/ch16.html#s01">图形软件
     python_cn/chinese/ch16.html#summary">GUI工具概括
python_cn/chinese/ch16s02.html">探索更多内容
python_cn/chinese/ch16s03.html">概括
A. python_cn/chinese/apa.html">自由/开放源码软件(FLOSS)
B. python_cn/chinese/apb.html">关于本书
python_cn/chinese/apb.html#s01">后记
python_cn/chinese/apbs02.html">关于作者
python_cn/chinese/apbs03.html">关于译者
python_cn/chinese/apbs04.html">关于简体中文译本
C. python_cn/chinese/apc.html">修订记录
python_cn/chinese/apc.html#s01">时间表
python_cn/chinese/apcs02.html">术语表

表格

5.1 python_cn/chinese/ch05s02.html#t51">运算符与它们的用法
5.2 python_cn/chinese/ch05s03.html#t52">运算符优先级
15.1 python_cn/chinese/ch15.html#t151">一些特殊的方法

例子

3.1 python_cn/chinese/ch03s02.html#e31">使用带提示符的Python解释器
3.2 python_cn/chinese/ch03s04.html#e32">使用源文件
4.1 python_cn/chinese/ch04s07.html#e41">使用变量和字面意义上的常量
5.1 python_cn/chinese/ch05s04.html#using">使用表达式
6.1 python_cn/chinese/ch06s02.html#e61">使用if语句
6.2 python_cn/chinese/ch06s03.html#e62">使用while语句
6.3 python_cn/chinese/ch06s04.html#e63">使用for语句
6.4 python_cn/chinese/ch06s05.html#e64">使用break语句
6.5 python_cn/chinese/ch06s06.html#e65">使用continue语句
7.1 python_cn/chinese/ch07.html#e71">定义函数
7.2 python_cn/chinese/ch07s02.html#e72">使用函数形参
7.3 python_cn/chinese/ch07s03.html#e73">使用局部变量
7.4 python_cn/chinese/ch07s03.html#e74">使用global语句
7.5 python_cn/chinese/ch07s04.html#e75">使用默认参数值
7.6 python_cn/chinese/ch07s05.html#e76">使用关键参数
7.7 python_cn/chinese/ch07s06.html#e77">使用字面意义上的语句
7.8 python_cn/chinese/ch07s07.html#e78">使用DocStrings
8.1 python_cn/chinese/ch08.html#e81">使用sys模块
8.2 python_cn/chinese/ch08s04.html#e82">使用模块的__name__
8.3 python_cn/chinese/ch08s05.html#e83">如何创建你自己的模块
8.4 python_cn/chinese/ch08s06.html#e84">使用dir函数
9.1 python_cn/chinese/ch09s02.html#e91">使用列表
9.2 python_cn/chinese/ch09s03.html#e92">使用元组
9.3 python_cn/chinese/ch09s03.html#e93">使用元组输出
9.4 python_cn/chinese/ch09s04.html#e94">使用字典
9.5 python_cn/chinese/ch09s05.html#e95">使用序列
9.6 python_cn/chinese/ch09s06.html#e96">对象与参考
10.1 python_cn/chinese/ch10s02.html#e101">备份脚本——版本一
10.2 python_cn/chinese/ch10s02.html#e102">备份脚本——版本二
10.3 python_cn/chinese/ch10s02.html#e103">备份脚本——版本三(不工作!)
10.4 python_cn/chinese/ch10s02.html#e104">备份脚本——版本四
11.1 python_cn/chinese/ch11s03.html#e111">创建一个类
11.2 python_cn/chinese/ch11s04.html#e112">使用对象的方法
11.3 python_cn/chinese/ch11s05.html#e113">使用__init__方法
11.4 python_cn/chinese/ch11s06.html#e114">使用类与对象的变量
11.5 python_cn/chinese/ch11s07.html#e115">使用继承
12.1 python_cn/chinese/ch12.html#e121">使用文件
12.2 python_cn/chinese/ch12s02.html#e122">储存与取储存
13.1 python_cn/chinese/ch13s02.html#e131">处理异常
13.2 python_cn/chinese/ch13s03.html#e132">如何引发异常
14.1 python_cn/chinese/ch14s02.html#e141">使用sys.argv
15.1 python_cn/chinese/ch15s03.html#e151">使用列表综合
15.2 python_cn/chinese/ch15s05.html#e152">使用lambda形式
百度中搜索更多的关于简明 Python 基础学习教程内容,或者用Google搜索相关更多
浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行