实例介绍
【实例截图】
【核心代码】
Contents
Author
Preface
Chapter 1 ■ The Absolute Bare Minimum
1.1 Python and IDEs
1.2 IDLE
1.3 Variables
1.4 Important Data Types
1.5 Basic Arithmetic
1.6 Comparisons
1.7 Booleans
1.8 Lists
1.9 Strings
1.10 Comments
7
1.11 Statement Types
1.11.1 Assignment Statements
1.11.2 Print “Statements”
1.11.3 If Statements
1.11.4 While Loops
1.11.5 For Loops
1.11.6 Import Statements
1.12 Input from the User
1.13 Functions
1.14 Syntax
1.15 Order of Execution
1.16 Summary
1.17 Wait, That's It?
Chapter 2 ■ Better Tools
2.1 Object Notation
2.2 Lists
2.3 Tuples
2.4 Sets
2.5 Dictionaries
8
2.6 String Methods
2.7 Loops for Objects
2.7.1 Looping over Lists
2.7.2 Looping over Sets
2.7.3 Looping over Dictionaries
2.8 Handing Exceptions
2.9 Type Conversions
2.10 Scope
2.11 File I/O
2.12 Pickling
Chapter 3 ■ Classes
3.1 Classes and Inheritance
3.2 Constructors and Self
3.3 Subclasses
3.4 Printing Objects
3.5 Comparing Objects
3.6 Bindings
3.7 Shallow and Deep Copies
Chapter 4 ■ Getting Fancy
9
4.1 Statements
4.2 Identifiers
4.3 Type Hints
4.4 Numbers
4.5 Strings
4.6 F-strings
4.7 Bit Operations
4.8 List Comprehensions
4.9 Iterators
4.10 Generators
4.11 Parameters and Arguments
4.12 Functional Programming
Chapter 5 ■ Testing
5.1 Philosophy
5.2 Doctest
5.3 Unit Testing
5.4 Unit Test Example
5.5 Test Suites
10
Chapter 6 ■ Graphical User Interfaces
6.1 Dialogs
6.2 Tkinter
6.3 Creating Widgets
6.4 Putting Widgets Into the GUI
6.5 Tkinter Example
■ Afterword
Appendix A: string methods
Appendix B: Numerical Functions
Appendix C: Statistics
Appendix D: Functions on Iterables
Appendix E: Operating System Commands
Appendix F: Unit Test Methods
Index
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
网友评论
我要评论