" />
python2.7中文手冊(cè).chm是一款強(qiáng)大的編程語(yǔ)言,具有簡(jiǎn)單易用的特點(diǎn),python2.7是較穩(wěn)定的一個(gè)版本,這個(gè)python2.7中文手冊(cè)由官方發(fā)布,為中文版本,用戶可以通過(guò)本書(shū)了解python2.7使用,可以輕松讓你學(xué)會(huì)python編程。
Python(KK 英語(yǔ)發(fā)音:/ˈpaɪθən/)是一種面向?qū)ο、直譯式計(jì)算機(jī)程序設(shè)計(jì)語(yǔ)言。也是一種功能強(qiáng)大而完善的通用型語(yǔ)言,已經(jīng)具有十多年的發(fā)展歷史,成熟且穩(wěn)定。Python 具有腳本語(yǔ)言中最豐富和強(qiáng)大的類(lèi)庫(kù),足以支持絕大多數(shù)日常應(yīng)用。 Python語(yǔ)法簡(jiǎn)捷而清晰,具有豐富和強(qiáng)大的類(lèi)庫(kù)。它常被昵稱為膠水語(yǔ)言,它能夠很輕松的把用其他語(yǔ)言制作的各種模塊(尤其是C/C++)輕松地聯(lián)結(jié)在一起。Python的名字來(lái)源于一個(gè)喜劇。也許最初設(shè)計(jì)Python這種語(yǔ)言的人并沒(méi)有想到Python會(huì)在工業(yè)和科研上獲得如此廣泛的使用。
前言 Front Matter
Contents
1. 開(kāi)胃菜 Whetting Your Appetite
2. 使用Python解釋器 Using the Python Interpreter
2.1 調(diào)用解釋器 Invoking the Interpreter
2.1.1 參數(shù)傳遞 Argument Passing
2.1.2 交互模式 Interactive Mode
2.2 解釋器及其環(huán)境 The Interpreter and Its Environment
2.2.1 錯(cuò)誤處理 Error Handling
2.2.2 執(zhí)行Python腳本 Executable Python Scripts
2.2.3 源程序編碼 Source Code Encoding
2.2.4 交互式環(huán)境的啟動(dòng)文件 The Interactive Startup File
3. Python簡(jiǎn)介 An Informal Introduction to Python
3.1 將Python當(dāng)作計(jì)算器使用 Using Python as a Calculator
3.1.1 數(shù)值 Numbers
3.1.2 字符串 Strings
3.1.3 Unicode 字符串 Unicode Strings
3.1.4 鏈表 Lists
3.2 開(kāi)始編程 First Steps Towards Programming
4. 深入流程控制 More Control Flow Tools
4.1 if 語(yǔ)句 if Statements
4.2 for 語(yǔ)句 for Statements
4.3 range() 函數(shù) The range() Function
4.4 break 和 continue 語(yǔ)句, 以及 循環(huán)中的 else 子句 break and continue Statements, and else Clauses on Loops
4.5 pass 語(yǔ)句 pass Statements
4.6 Defining Functions
4.7 深入函數(shù)定義 More on Defining Functions
4.7.1 參數(shù)默認(rèn)值 Default Argument Values
4.7.2 關(guān)鍵字參數(shù) Keyword Arguments
4.7.3 可變參數(shù)表 Arbitrary Argument Lists
4.7.4 參數(shù)列表的分拆 Unpacking Argument Lists
4.7.5 Lambda 形式 Lambda Forms
4.7.6 文檔字符串 Documentation Strings
5. 數(shù)據(jù)結(jié)構(gòu) Data Structures
5.1 深入鏈表 More on Lists
5.1.1 把鏈表當(dāng)作堆棧使用 Using Lists as Stacks
5.1.2 把鏈表當(dāng)作隊(duì)列使用 Using Lists as Queues
5.1.3 函數(shù)化編程工具 Functional Programming Tools
5.1.4 鏈表推導(dǎo)式 List Comprehensions
5.2 del 語(yǔ)句
5.3 元組(Tuples)和序列(Sequences )Tuples and Sequences
5.4 Dictionaries 字典
5.5 循環(huán)技巧 Looping Techniques
5.6 深入條件控制 More on Conditions
5.7 比較序列和其它類(lèi)型 Comparing Sequences and Other Types
6. 模塊 Modules
6.1 深入模塊 More on Modules
6.1.1 模塊搜索路徑 The Module Search Path
6.1.2 “編譯”Python文件 ``Compiled'' Python files
6.2 標(biāo)準(zhǔn)模塊 Standard Modules
6.3 dir() 函數(shù) dir() Function
6.4 包 Packages
6.4.1 以 * 方式加載包 Importing * From a Package
6.4.2 內(nèi)置包(Intra-package)參考 Intra-package References
6.4.3 多重路徑中的包 Packages in Multiple Directories
7. 輸入和輸出 Input and Output
7.1 設(shè)計(jì)輸出格式 Fancier Output Formatting
7.2 讀寫(xiě)文件 Reading and Writing Files
7.2.1 文件對(duì)象(file object)的方法 Methods of File Objects
7.2.2 pickle 模塊 pickle Module
8. 錯(cuò)誤和異常 Errors and Exceptions
8.1 異常 Exceptions
8.2 處理異常 Handling Exceptions
8.3 拋出異常 Raising Exceptions
8.4 用戶自定義異常 User-defined Exceptions
8.5 定義清理行為 Defining Clean-up Actions
9. 類(lèi) Classes
9.1 有關(guān)術(shù)語(yǔ)的話題 A Word About Terminology
9.2 Python 作用域和命名空間 Python Scopes and Name Spaces
9.3 初識(shí)類(lèi) A First Look at Classes
9.3.1 類(lèi)定義語(yǔ)法 Class Definition Syntax
9.3.2 類(lèi)對(duì)象 Class Objects
9.3.3 實(shí)例對(duì)象 Instance Objects
9.3.4 方法對(duì)象 Method Objects
9.4 一些說(shuō)明 Random Remarks
9.5 繼承 Inheritance
9.5.1 多繼承 Multiple Inheritance
9.6 私有變量 Private Variables
9.7 補(bǔ)充 Odds and Ends
9.8 異常也是類(lèi) Exceptions Are Classes Too
9.9 迭代器 Iterators
9.10 生成器 Generators
10. 標(biāo)準(zhǔn)庫(kù)概覽 Brief Tour of the Standard Library
10.1 操作系統(tǒng)概覽 Operating System Interface
10.2 文件通配符 File Wildcards
10.3 命令行參數(shù) Command Line Arguments
10.4 錯(cuò)誤輸出重定向和程序終止 Error Output Redirection and Program Termination
10.5 字符串正則匹配 String Pattern Matching
10.6 數(shù)學(xué) Mathematics
10.7 互聯(lián)網(wǎng)訪問(wèn) Internet Access
10.8 日期和時(shí)間 Dates and Times
10.9 數(shù)據(jù)壓縮 Data Compression
10.10 性能度量 Performance Measurement
10.11 質(zhì)量控制 Quality Control
10.12 Batteries Included
11. What Now?
A. Interactive Input Editing and History Substitution
A.1 Line Editing
A.2 History Substitution
A.3 Key Bindings
A.4 Commentary
B. Floating Point Arithmetic: Issues and Limitations
B.1 Representation Error
C. History and License
D. Glossary
About this document 。
這是python2.7中文手冊(cè).chm,python中文手冊(cè)chm,內(nèi)容豐富全面,不但是一本手冊(cè),你完全可以把她作為一本Python的入門(mén)教程,教你如何使用Python解釋器、流程控制、數(shù)據(jù)結(jié)構(gòu)、模板、輸入和輸出、錯(cuò)誤和異常、類(lèi)和標(biāo)準(zhǔn)庫(kù)詳解等方面的知識(shí)技巧。同時(shí)后附的手冊(cè)可以方便你的查詢。