没有合适的资源?快使用搜索试试~ 我知道了~
Powerful Python
需积分: 10 10 下载量 59 浏览量
2017-11-12
23:59:14
上传
评论 1
收藏 1.46MB PDF 举报
温馨提示
试读
332页
2017年出版的中级Python教程,面向对象是有一定Python编程基础
资源推荐
资源详情
资源评论
Powerful Python
Download from finelybook www.finelybook.com
2
Table of Contents
Doing More with Python
Python Versions
Python Application Environments
Python Package Management
Scaling With Generators
Iteration in Python
Generator Functions
Generator Patterns and Scalable Composability
Python is Filled With Iterators
The Iterator Protocol
Creating Collections with Comprehensions
List Comprehensions
Formatting For Readability (And More)
Multiple Sources and Filters
Comprehensions and Generators
Dictionaries, Sets, and Tuples
Limits of Comprehensions
Advanced Functions
Accepting & Passing Variable Arguments
Download from finelybook www.finelybook.com
3
Functions As Objects
Key Functions in Python
Decorators
The Basic Decorator
Data In Decorators
Decorators That Take Arguments
Class-based Decorators
Decorators For Classes
Preserving the Wrapped Function
Exceptions and Errors
The Basic Idea
Exceptions Are Objects
Raising Exceptions
Catching And Re-raising
The Most Diabolical Python Anti-Pattern
Classes and Objects: Beyond The Basics
Quick Note on Python 2
Properties
The Factory Patterns
The Observer Pattern
Magic Methods
Download from finelybook www.finelybook.com
4
Rebelliously Misusing Magic Methods
Automated Testing and TDD
What is Test-Driven Development?
Unit Tests And Simple Assertions
Fixtures And Common Test Setup
Asserting Exceptions
Using Subtests
Final Thoughts
String Formatting
Replacing Fields
Number Formats (and "Format Specs")
Width, Alignment, and Fill
F-Strings
Percent Formatting
Logging in Python
The Basic Interface
Configuring The Basic Interface
Passing Arguments
Beyond Basic: Loggers
Log Destinations: Handlers and Streams
Logging to Multiple Destinations
Download from finelybook www.finelybook.com
5
剩余331页未读,继续阅读
资源评论
ralphsage
- 粉丝: 25
- 资源: 96
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功