简介
比兹利、琼斯所著的《Python Cookbook(影印版第3版)》包含了用Python 3.3编写和测试过的实例,适合于那些希望专注于新工具和新方法的有经验的Python程序员。在这本书里,你将找到十多个技术课题的完整实例,涵盖了核心Python语言和多种应用领域的常见任务。每种实例都包含了你可以直接使用在项目中的样例,以及关于这种解决方案如何和为什么可以奏效的讨论。
目录
Preface
1. Data Structures and Algorithms
1.1. Unpacking a Sequence into Separate Variables
1.2. Unpacking Elements from Iterables of Arbitrary Length
1.3. Keeping the Last N Items
1.4. Finding the Largest or Smallest N Items
1.5. Implementing a Priority Queue
1.6. Mapping Keys to Multiple Values in a Dictionary
1.7. Keeping Dictionaries in Order
1.8. Calculating with Dictionaries
1.9. Finding Commonalities in Two Dictionaries
1.10. Removing Duplicates from a Sequence while Maintaining Order
1.11. Naming a Slice
1.12. Determining the Most Frequently Occurring Items in a Sequence
1.13. Sorting a List of Dictionaries by a Common Key
1.14. Sorting Objects Without Native Comparisofi Support
1.15. Grouping Records Together Based on a Field
1.16. Filtering Sequence Elements
1.17. Extracting a Subset of a Dictionary
1.18. Mapping Names to Sequence Elements
1.19. Transforming and Reducing Data at the Same Time
1.20. Combining Multiple Mappings into a Single Mapping
2. Strings and Text
3. Numbers, Dates, and Times
4. Iterators and Generators
5. Files and I/O
6. Data Encoding and Processing
7. Functions
8. Classes and Objects
9 .Metaprogramming
10. Modules and Packages
11. Network and Web Programming
12. Concurrency
13. Utility Scripting and System Administration
14. Testing, Debugging, and Exceptions
15. C Extensions
A. Further Reading
Index
1. Data Structures and Algorithms
1.1. Unpacking a Sequence into Separate Variables
1.2. Unpacking Elements from Iterables of Arbitrary Length
1.3. Keeping the Last N Items
1.4. Finding the Largest or Smallest N Items
1.5. Implementing a Priority Queue
1.6. Mapping Keys to Multiple Values in a Dictionary
1.7. Keeping Dictionaries in Order
1.8. Calculating with Dictionaries
1.9. Finding Commonalities in Two Dictionaries
1.10. Removing Duplicates from a Sequence while Maintaining Order
1.11. Naming a Slice
1.12. Determining the Most Frequently Occurring Items in a Sequence
1.13. Sorting a List of Dictionaries by a Common Key
1.14. Sorting Objects Without Native Comparisofi Support
1.15. Grouping Records Together Based on a Field
1.16. Filtering Sequence Elements
1.17. Extracting a Subset of a Dictionary
1.18. Mapping Names to Sequence Elements
1.19. Transforming and Reducing Data at the Same Time
1.20. Combining Multiple Mappings into a Single Mapping
2. Strings and Text
3. Numbers, Dates, and Times
4. Iterators and Generators
5. Files and I/O
6. Data Encoding and Processing
7. Functions
8. Classes and Objects
9 .Metaprogramming
10. Modules and Packages
11. Network and Web Programming
12. Concurrency
13. Utility Scripting and System Administration
14. Testing, Debugging, and Exceptions
15. C Extensions
A. Further Reading
Index
Python Cookbook
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问
Video Player
×
Audio Player
×
pdf Player
×