更新时间:2021-06-11 12:51:58
封面
版权页
Preface
About the Book
1. Vital Python – Math Strings Conditionals and Loops
Introduction
Vital Python
Numbers: Operations Types and Variables
Python as a Calculator
Strings: Concatenation Methods and input()
String Interpolation
String Indexing and Slicing
Slicing
Booleans and Conditionals
Loops
Summary
2. Python Structures
The Power of Lists
Matrix Operations
List Methods
Dictionary Keys and Values
Dictionary Methods
Tuples
A Survey of Sets
Choosing Types
3. Executing Python – Programs Algorithms and Functions
Python Scripts and Modules
Python Algorithms
Basic Functions
Iterative Functions
Recursive Functions
Dynamic Programming
Helper Functions
Variable Scope
Lambda Functions
4. Extending Python Files Errors and Graphs
Reading Files
Writing Files
Preparing for Debugging (Defensive Code)
Plotting Techniques
The Don'ts of Plotting Graphs
5. Constructing Python – Classes and Methods
Classes and Objects
Defining Classes
The __init__ method
Methods
Properties
Inheritance
6. The Standard Library
The Importance of the Standard Library
Dates and Times
Interacting with the OS
Using the subprocess Module
Logging
Collections
Functools
7. Becoming Pythonic
Using List Comprehensions
Set and Dictionary Comprehensions
Default Dictionary
Iterators
Itertools
Generators
Regular Expressions
8. Software Development
Debugging
Automated Testing
Creating a PIP Package
Creating Documentation the Easy Way
Source Management
9. Practical Python – Advanced Topics
Developing Collaboratively
Dependency Management
Deploying Code into Production
Multiprocessing
Parsing Command-Line Arguments in Scripts
Performance and Profiling
Profiling
10. Data Analytics with pandas and NumPy
NumPy and Basic Stats
Matrices
The pandas Library
Data