Supercharged Python: Take Your Code to the Next Level
Authors: Brian Overland – John Bennett
ISBN-10: 0135159946
ISBN-13: 9780135159941
Edition 版本: 1
Released: 2019-07-12
Print Length 页数: 672 pages
Book Description
Tapping into the full power of Python doesn’t have to be difficult. Supercharged Python is written for people who’ve learned the fundamentals of the language but want to take their skills to the next level.
Using the example-driven approach featured in Python Without Fear,Brian Overland and John Bennett start with simple examples and carefully build more complex applications. After briefly reviewing the fundamental concepts of Python,the authors carefully explain more advanced topics,including text formatting,regular expressions,and chart plotting.
The book reviews advanced techniques for list and string classes,and then covers all the ways of handling text and binary files; decimal,money,and other special classes; advanced techniques for writing classes; generators and decorators; and the random,math,and Numpy (Numeric Python) packages,which can supercharge your applications.
Use profilers and “magic methods” to code like a pro
Harness the power of regular expressions to process text quickly with a single statement
Take advantage of 22 coding shortcuts,along with performance tips to save time and optimize your code
Create really useful classes and objects,for games,simulations,money,mathematics,and more
Use multiple modules to build powerful apps while avoiding the “gotchas”
Import packages to dramatically speed up statistical operations—by as much as 100 times!
Refer to the five-part language reference to look up fine points of the language
Supercharged Python demonstrates techniques that allow you to write faster and more powerful code,whether you’re manipulating large amounts of data or building sophisticated applications.
Contents
1. Review of the Fundamentals
2. Advanced String Capabilities
3. Advanced List Capabilities
4. Shortcuts,Command Line,and Packages
5. Formatting Text Precisely
6. Regular Expressions,Part I
7. Regular Expressions,Part ll
8. Text and Binary Files
9. Classes and Magic Methods
10. Decimal,Money,and Other Classes
11. The Random and Math Packages
12. The “numpy”(Numeric Python) Package
13. Advanced Uses of “numpy”
14. Multiple Modules and the RPN Example
15. Getting Financial Data off the Internet
Appendix A Python Operator Precedence Table
Appendix B Built-In Python Functions
Appendix CSet Methods
Appendix D Dictionary Methods
Appendix E Statement Reference
Supercharged Python Take Your Code to the Next Level 9780135159941. zip[/erphpdown]