最新章節
- Index
- Summary
- Plugging into a MapReduce framework
- Building web applications
- Building GUI applications
- Building CLI applications
品牌:中圖公司
上架時間:2021-07-16 11:15:28
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Index 更新時間:2021-07-16 13:53:31
- Summary
- Plugging into a MapReduce framework
- Building web applications
- Building GUI applications
- Building CLI applications
- Types of applications
- Leveraging PyPI – the Python Package Index
- Leveraging the standard library
- Chapter 15. Next Steps
- Summary
- Organizing Python code
- Writing documentation with RST markup
- Logging events and conditions
- Using other add-on test libraries
- Using the unittest library for testing
- Writing unit tests with doctest
- Writing docstrings
- Chapter 14. Fit and Finish – Unit Testing Packaging and Documentation
- Summary
- More complex metaprogramming with metaclasses
- Defining our own decorator
- Simple metaprogramming with decorators
- Chapter 13. Metaprogramming and Decorators
- Summary
- Seeing the package search path
- Designing alternative implementations
- Creating a package
- Creating a hybrid library/application module
- Creating a reusable module
- Running a script by the filename
- Script file rules
- Chapter 12. Scripts Modules Packages Libraries and Applications
- Summary
- The ABCs of abstract base classes
- Using __slots__ to save storage
- Using class methods and attributes
- Using inheritance to simplify class definitions
- Using properties
- Pythonic object-oriented programming
- Using instance variables and methods
- Writing the suite of statements in a class
- Creating a class
- Chapter 11. Class Definitions
- Summary
- Physical format considerations
- Web services and Internet protocols
- Using the shelve module as a database
- Using a context manager via the with statement
- The essential file concept
- Chapter 10. Files Databases Networks and Contexts
- Summary
- Permission versus forgiveness – a Pythonic approach
- Issuing warnings instead of exceptions
- Use cases for exceptions
- Using a finally clause
- Creating our own exceptions
- Matching exception classes in an except clause
- Using the try and except statements
- The core exception concept
- Chapter 9. Exceptions
- Summary
- Functional programming design patterns
- Three ways to sort a sequence
- Using the built-in reductions – max min and reduce
- Using the higher-order functions
- Defining generator functions with the yield statement
- Using generator expressions and comprehensions
- Consequences and next steps
- Using the for statement with iterable collections
- Chapter 8. More Advanced Functions
- Summary
- Writing additional function annotations
- Defining lambdas
- Working with namespaces
- Nested function definitions
- Using the "everything else" notations of * and **
- Defining optional parameters via default values
- Mutable and immutable argument values
- Defining functions with positional parameters
- Looking at the five kinds of callables
- Chapter 7. Basic Function Definitions
- Summary
- Using the else clause on a loop
- The continue and break statements
- Iterating with the while statement
- Processing collections with the for statement
- Mappings
- Using the set collection
- Using collection functions
- Using the list collection
- The mutability and immutability distinction
- Chapter 6. More Complex Data Types
- Summary
- The logic of the None object
- The assert statement
- The pass statement as a placeholder
- The if-elif-else statement
- Logic operators – and or not if-else
- Comparison operators
- Boolean data and the bool() function
- Chapter 5. Logic Comparisons and Conditions
- Summary
- The Python namespace concept
- Python language concepts
- The input() function
- Augmented assignment
- Using the head *tail assignment
- Multiple assignment
- Simple assignment and variables
- Chapter 4. Variables Assignment and Scoping Rules
- Summary
- Summary of the standard string libraries
- Splitting partitioning and joining strings
- Examining syntax rules
- The print() function
- Expressions operators and data types
- Chapter 3. Expressions and Output
- Summary
- Using the built-in conversion functions
- The consequences of immutability
- The None object
- Using the tuple collection
- Using string and bytes values
- Working with sequences
- Using bits and Boolean values
- The math libraries
- The numeric tower
- Introducing the built-in operators
- Chapter 2. Simple Data Types
- Summary
- Looking at other Python interpreters
- The Python ecosystem
- Creating simple script files
- Interacting with the help subsystem
- Using the Read-Evaluate-Print Loop (REPL)
- Installation or upgrade
- Chapter 1. Getting Started
- Preface
- www.PacktPub.com
- About the Reviewers
- About the Author
- Credits
- 版權信息
- 封面
- 封面
- 版權信息
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- Chapter 1. Getting Started
- Installation or upgrade
- Using the Read-Evaluate-Print Loop (REPL)
- Interacting with the help subsystem
- Creating simple script files
- The Python ecosystem
- Looking at other Python interpreters
- Summary
- Chapter 2. Simple Data Types
- Introducing the built-in operators
- The numeric tower
- The math libraries
- Using bits and Boolean values
- Working with sequences
- Using string and bytes values
- Using the tuple collection
- The None object
- The consequences of immutability
- Using the built-in conversion functions
- Summary
- Chapter 3. Expressions and Output
- Expressions operators and data types
- The print() function
- Examining syntax rules
- Splitting partitioning and joining strings
- Summary of the standard string libraries
- Summary
- Chapter 4. Variables Assignment and Scoping Rules
- Simple assignment and variables
- Multiple assignment
- Using the head *tail assignment
- Augmented assignment
- The input() function
- Python language concepts
- The Python namespace concept
- Summary
- Chapter 5. Logic Comparisons and Conditions
- Boolean data and the bool() function
- Comparison operators
- Logic operators – and or not if-else
- The if-elif-else statement
- The pass statement as a placeholder
- The assert statement
- The logic of the None object
- Summary
- Chapter 6. More Complex Data Types
- The mutability and immutability distinction
- Using the list collection
- Using collection functions
- Using the set collection
- Mappings
- Processing collections with the for statement
- Iterating with the while statement
- The continue and break statements
- Using the else clause on a loop
- Summary
- Chapter 7. Basic Function Definitions
- Looking at the five kinds of callables
- Defining functions with positional parameters
- Mutable and immutable argument values
- Defining optional parameters via default values
- Using the "everything else" notations of * and **
- Nested function definitions
- Working with namespaces
- Defining lambdas
- Writing additional function annotations
- Summary
- Chapter 8. More Advanced Functions
- Using the for statement with iterable collections
- Consequences and next steps
- Using generator expressions and comprehensions
- Defining generator functions with the yield statement
- Using the higher-order functions
- Using the built-in reductions – max min and reduce
- Three ways to sort a sequence
- Functional programming design patterns
- Summary
- Chapter 9. Exceptions
- The core exception concept
- Using the try and except statements
- Matching exception classes in an except clause
- Creating our own exceptions
- Using a finally clause
- Use cases for exceptions
- Issuing warnings instead of exceptions
- Permission versus forgiveness – a Pythonic approach
- Summary
- Chapter 10. Files Databases Networks and Contexts
- The essential file concept
- Using a context manager via the with statement
- Using the shelve module as a database
- Web services and Internet protocols
- Physical format considerations
- Summary
- Chapter 11. Class Definitions
- Creating a class
- Writing the suite of statements in a class
- Using instance variables and methods
- Pythonic object-oriented programming
- Using properties
- Using inheritance to simplify class definitions
- Using class methods and attributes
- Using __slots__ to save storage
- The ABCs of abstract base classes
- Summary
- Chapter 12. Scripts Modules Packages Libraries and Applications
- Script file rules
- Running a script by the filename
- Creating a reusable module
- Creating a hybrid library/application module
- Creating a package
- Designing alternative implementations
- Seeing the package search path
- Summary
- Chapter 13. Metaprogramming and Decorators
- Simple metaprogramming with decorators
- Defining our own decorator
- More complex metaprogramming with metaclasses
- Summary
- Chapter 14. Fit and Finish – Unit Testing Packaging and Documentation
- Writing docstrings
- Writing unit tests with doctest
- Using the unittest library for testing
- Using other add-on test libraries
- Logging events and conditions
- Writing documentation with RST markup
- Organizing Python code
- Summary
- Chapter 15. Next Steps
- Leveraging the standard library
- Leveraging PyPI – the Python Package Index
- Types of applications
- Building CLI applications
- Building GUI applications
- Building web applications
- Plugging into a MapReduce framework
- Summary
- Index 更新時間:2021-07-16 13:53:31