简明python教程
简明python教程
前言
本书的读者
本书的由来
本书目前的状况
官方网站
约定条款
欢迎给我反馈
值得思考的一些东西
1. 介绍
简介
Python的特色
概括
为什么不使用Perl?
程序员的话
2. 安装Python
Linux和BSD用户
Windows®用户
概括
3. 最初的步骤
简介
使用带提示符的解释器
挑选一个编辑器
使用源文件
输出
它如何工作
可执行的Python程序
获取帮助
概括
4. 基本概念
字面意义上的常量
数
字符串
变量
标识符的命名
数据类型
对象
输出
它如何工作
逻辑行与物理行
缩进
概括
5. 运算符与表达式
简介
运算符
运算符优先级
计算顺序
结合规律
表达式
使用表达式
概括
6. 控制流
简介
if语句
使用if语句
它如何工作
while语句
使用while语句
for循环
使用for语句
break语句
使用break语句
continue语句
使用continue语句
概括
7. 函数
简介
定义函数
函数形参
使用函数形参
局部变量
使用局部变量
使用global语句
默认参数值
使用默认参数值
关键参数
使用关键参数
return语句
使用字面意义上的语句
DocStrings
使用DocStrings
概括
8. 模块
简介
使用sys模块
字节编译的.pyc文件
from..import语句
模块的__name__
使用模块的__name__
制造你自己的模块
创建你自己的模块
from..import
dir()函数
使用dir函数
概括
9. 数据结构
简介
列表
对象与类的快速入门
使用列表
元组
使用元组
元组与打印语句
字典
使用字典
序列
使用序列
参考
对象与参考
更多字符串的内容
字符串的方法
概括
10. 解决问题——编写一个Python脚本
问题
解决方案
版本一
版本二
版本三
版本四
进一步优化
软件开发过程
概括
11. 面向对象的编程
简介
self
类
创建一个类
对象的方法
使用对象的方法
__init__方法
使用__init__方法
类与对象的变量
使用类与对象的变量
继承
使用继承
概括
12. 输入/输出
文件
使用文件
储存器
储存与取储存
概括
13. 异常
错误
try..except
处理异常
引发异常
如何引发异常
try..finally
使用finally
概括
14. Python标准库
简介
sys模块
命令行参数
更多sys的内容
os模块
概括
15. 更多Python的内容
特殊的方法
单语句块
列表综合
使用列表综合
在函数中接收元组和列表
lambda形式
使用lambda形式
exec和eval语句
assert语句
repr函数
概括
16. 接下来学习什么?
图形软件
GUI工具概括
探索更多内容
概括
A. 自由/开放源码软件(FLOSS)
B. 关于本书
后记
关于作者
关于译者
关于简体中文译本
C. 修订记录
时间表
术语表
表格
5.1 运算符与它们的用法
5.2 运算符优先级
15.1 一些特殊的方法
例子
3.1 使用带提示符的Python解释器
3.2 使用源文件
4.1 使用变量和字面意义上的常量
5.1 使用表达式
6.1 使用if语句
6.2 使用while语句
6.3 使用for语句
6.4 使用break语句
6.5 使用continue语句
7.1 定义函数
7.2 使用函数形参
7.3 使用局部变量
7.4 使用global语句
7.5 使用默认参数值
7.6 使用关键参数
7.7 使用字面意义上的语句
7.8 使用DocStrings
8.1 使用sys模块
8.2 使用模块的__name__
8.3 如何创建你自己的模块
8.4 使用dir函数
9.1 使用列表
9.2 使用元组
9.3 使用元组输出
9.4 使用字典
9.5 使用序列
9.6 对象与参考
10.1 备份脚本——版本一
10.2 备份脚本——版本二
10.3 备份脚本——版本三(不工作!)
10.4 备份脚本——版本四
11.1 创建一个类
11.2 使用对象的方法
11.3 使用__init__方法
11.4 使用类与对象的变量
11.5 使用继承
12.1 使用文件
12.2 储存与取储存
13.1 处理异常
13.2 如何引发异常
14.1 使用sys.argv
15.1 使用列表综合
15.2 使用lambda形式
Building Cocoa Applications: A Step-by-Step Guide
Part I: Cocoa Overview Chapter 1. Understanding theAqua Interface
Section 1.1. What Makes Mac OS X So Special? Section 1.2. A Quick Look at the Mac OS X User Interface Section 1.3. Basic Principles of the Aqua Interface Section 1.4. The Mouse and Cursor Section 1.5. Window Types and Behavior Section 1.6. Menus and the Menu Bar Section 1.7. The Dock Section 1.8. Controls Section 1.9. The Finder Section 1.10. Configuring Your Desktop, Step by Step Section 1.11. Menu Guidelines and Keyboard Equivalents Section 1.12. Working with the Filesystem,Step by Step Section 1.13. Summary Section 1.14. Exercises Section 1.15. References
Chapter 2. Tools for Developing Cocoa Applications Section 2.1. Developer Tools Section 2.2. Utilities Section 2.3. Working with the Terminal
Section 2.4. Debugging Programs with gdb
Section 2.5. User Interface Design Section 2.6. Summary Section 2.7. Exercises
Chapter 3. Creating a Simple Application with Interface Builder Section 3.1. Getting Started with Interface Builder Section 3.2. Adding Objects to Your Application Section 3.3. Objects, Messages, and Targets
Section 3.4. Summary Section 3.5. Exercise
Chapter 4. An Objective-C ApplicationWithout Interface Builder Section 4.1. The Tiny.m Program Section 4.2. An Introduction to Objective-C Section 4.3. Tiny.m Revisited
Section 4.4. Summary Section 4.5. Exercises Section 4.6. References
Part II: Calculator: Building a Simple Application Chapter 5. Building a Project: A Four-Function Calculator
Section 5.1. Getting Started: Building the Calculator Project Section 5.2. Building the Calculator's User Interface Section 5.3. Building the Calculator's Controller Class Section 5.4. Customizing Buttons and Making Connections Section 5.5. Compiling and Running a Program
Section 5.6. Compiler Error Messages Section 5.7. The enterDigit: Action Method Section 5.8. Adding the Four Calculator Functions Section 5.9. Adding the Unary Minus Function to the Controller Class Section 5.10. The Files in a Project Section 5.11. Summary Section 5.12. Exercises
Chapter 6. Nibs and Icons Section 6.1. Customizing MainMenu.nib Section 6.2. Managing Multiple Nibs Section 6.3. Adding Icons to Applications Section 6.4. Changing Calculator's Application Icon Section 6.5. Cocoa's NSImage Class
Section 6.6. Summary Section 6.7. Exercises Section 6.8. References
Chapter 7. Delegation and Resizing Section 7.1. Handling Different Bases Section 7.2. Delegation Section 7.3. Disabling Buttons for BetterMultiradix Input Section 7.4. Resizing Windows Programmatically Section 7.5. Two Very Important Classes: NSWindow and NSView Section 7.6. Summary
Section 7.7. Exercises
Chapter 8. Events and Responders Section 8.1. Events and the NSResponder Chain Section 8.2. Events and the NSApplication Object Section 8.3. The Event Loop Section 8.4. Catching Keyboard Eventsfor Our Calculator Section 8.5. Summary Section 8.6. Exercises Section 8.7. References
Chapter 9. Darwin and the Window Server Section 9.1. Unix, Mach, and the Mac OS X Environment Section 9.2. The Window Server and Quartz Section 9.3. Seeing All the Processes Section 9.4. Summary Section 9.5. Exercises Section 9.6. References
Part III: MathPaper: A Multiple-Document, Multiprocess Application Chapter 10. MathPaper and Cocoa'sDocument-Based Architecture
Section 10.1. The MathPaper Application Section 10.2. The Evaluator Back End Section 10.3. Cocoa's Document-Based Architecture Section 10.4. Building MathPaper's Front End Section 10.5. Summary Section 10.6. Exercises Section 10.7. References
Chapter 11. Tasks, Pipes, and NSTextView Section 11.1. Processes, Pipes, and Resources Section 11.2. Making Evaluator a MathPaper Auxiliary Executable Section 11.3. MathDocument Class Modifications Section 11.4. Creating PaperController, a Subclass of NSWindowController Section 11.5. The NSScrollView and NSTextView Classes Section 11.6. PaperController Class Modifications Section 11.7. Summary Section 11.8. Exercises
Chapter 12. Rich Text Format and NSText Section 12.1. Rich Text Format Section 12.2. Creating an RTF Class Section 12.3. Integrating Our RTF Class into MathPaper Section 12.4. Summary
Section 12.5. Exercises
Chapter 13. Saving, Loading, and Printing Section 13.1. Data Management with NSDocument Section 13.2. Saving to a File Section 13.3. Loading from a File Section 13.4. Marking a Document Window as Edited Section 13.5. Adding Printing Capability Section 13.6. Summary Section 13.7. Exercises
Chapter 14. Drawing with Quartz Section 14.1. Animation in an About Panel Section 14.2. The Quartz Window Server Section 14.3. Implementing the About Panel in MathPaper Section 14.4. Quartz Graphics Data Types Section 14.5. Timers Section 14.6. Putting It All Together Section 14.7. Summary Section 14.8. Exercises Section 14.9. References
Chapter 15. Drawing in a Rectangle: More Fun with Cocoa Views Section 15.1. The Advantages of NSView's drawRect: Method Section 15.2. BlackView: An NSView That Paints Itself Black Section 15.3. A Closer Look at the NSView Class
Section 15.4. BarView: An NSView with a Scaled Coordinate System Section 15.5. PolygonView: A Non-Opaque NSView Section 15.6. Responding to Events in an NSView Section 15.7. Autosizing Multiple Views in a Window
Section 15.8. Summary Section 15.9. Exercises
Part IV: GraphPaper: A Multithreaded, Mouse-Tracking Application Chapter 16. GraphPaper: A Multithreaded Application with a Display List
Section 16.1. GraphPaper's Design Section 16.2. Working with Multiple Threads Section 16.3. Building the GraphPaper Application Section 16.4. Extending the Display List Section 16.5. Summary Section 16.6. Exercises Section 16.7. References
Chapter 17. Color Section 17.1. Colors and Color Objects Section 17.2. Adding Color to GraphPaper Section 17.3. Summary Section 17.4. Exercises
Chapter 18. Tracking the Mouse Section 18.1. Tracking the Mouse Section 18.2. Adding Mouse Tracking to GraphPaper Section 18.3. Summary Section 18.4. Exercises Section 18.5. References
Chapter 19. Zooming and Saving Graphics Files Section 19.1. Adding a Zoom Button to GraphPaper Section 19.2. Saving to PDF Section 19.3. Saving to TIFF Section 19.4. Creating an Accessory NSView Section 19.5. Summary Section 19.6. Exercises
Chapter 20. Pasteboards, Services, Modal Sessions, and Drag-and-Drop Section 20.1. Cut, Copy, and Paste with the Pasteboard
Section 20.2. Using the Pasteboard in GraphPaper Section 20.3. Services Section 20.4. Creating Your Own Service Section 20.5. Drag-and-Drop
Section 20.6. Summary Section 20.7. Exercises
Chapter 21. Preferences and Defaults Section 21.1. Preferences and the Defaults Database System Section 21.2. Adding Defaults to GraphPaper Section 21.3. Making the Preferences Panel Work with Defaults Section 21.4. Setting Up a Multi-View Panel Section 21.5. Summary Section 21.6. Exercises
Appendix A. Cocoa Resources Section A.1. Apple Resources Section A.2. Third-Party Resources
linux kernel in a nutshell
经典的就不多介绍啦........................................
构建嵌入式Linux
Linux开发经典书籍,就不多说了.....................