流利的Python语言(影印版 英文版) [Fluent Python]

流利的Python语言(影印版 英文版) [Fluent Python] pdf epub mobi txt 电子书 下载 2025

Luciano,Ramalho 著
想要找书就要到 新城书站
立刻按 ctrl+D收藏本页
你会得到大惊喜!!
出版社: 东南大学出版社
ISBN:9787564168742
版次:1
商品编码:12109424
包装:平装
外文名称:Fluent Python
开本:16开
出版时间:2017-01-01
用纸:胶版纸
页数:743
字数:945000
正文语种:英文

具体描述

内容简介

  Python的简洁让你可以快速达到高产水平,但是这通常意味着你并没有用到它提供的所有功能特性。
  有了《流利的Python语言(影印版 英文版)》,你将学会如何利用那些很容易被忽视的特性来编写有效且通顺的Python代码。作者Luciano Ramalho将带领你们遍历Python的核心语言特性和程序库,并展示精简代码、优化速度和可读性的方法。
  很多富有经验的程序员尝试将Python扭曲成适合他们从其他语言中学到的模式,而从未发现超出他们经验的Python特性。通过《流利的Python语言(影印版 英文版)》,那些Python程序员将完全学会如何高效率地使用Python 3。

目录

Preface

Part I. Prologue
1. The Python Data Model
A Pythonic Card Deck
How Special Methods Are Used
Emulating Numeric Types
String Representation
Arithmetic Operators
Boolean Value of a Custom Type
Overview of Special Methods
Why len Is Not a Method
Chapter Summary
Further Reading

Part II. Data Structures
2. An Array of Sequences
Overview of Built-In Sequences
List Comprehensions and Generator Expressions
List Comprehensions and Readability
Listcomps Versus map and filter
Cartesian Products
Generator Expressions
Tuples Are Not Just Immutable Lists
Tuples as Records
Tuple Unpacking
Nested Tuple Unpacking
Named Tuples
Tuples as Immutable Lists
Slicing
Why Slices and Range Exclude the Last Item
Slice Objects
Multidimensional Slicing and Ellipsis
Assigning to Slices
Using + and * with Sequences
Building Lists of Lists
Augmented Assignment with Sequences
A += Assignment Puzzler
list.sort and the sorted Built-In Function
Managing Ordered Sequences with bisect
Searching with bisect
Inserting with bisect.insort
When a List Is Not the Answer
Arrays
Memory Views
NumPy and SciPy
Deques and Other Queues
Chapter Summary
Further Reading
3. Dictionaries and Sets
Generic Mapping Types
dict Comprehensions
Overview of Common Mapping Methods
Handling Missing Keys with setdefault
Mappings with Flexible Key Lookup
defaultdict: Another Take on Missing Keys
The___ missing___ Method
Variations of dict
Subclassing UserDict
Immutable Mappings
Set Theory
set Literals
Set Comprehensions
Set Operations
dict and set Under the Hood
A Performance Experiment
Hash Tables in Dictionaries
……

Part III. Functions as Objects
Part IV. Object-Orientedldioms
Part V. Control Flow
Part VI. Metaprogramming
Afterword
A. Support Scripts
Python Jargon
Index

精彩书摘

  《流利的Python语言(影印版 英文版)》:
  In concluding the chapter, we mentioned how several built—in types are registered to ABCs in the collections.abe module so you can ask isinstance(memoryview,abc.Sequence) and get True, even if memoryview does not inherit from abc.Se quence.And finally we went over the_subclasshook_magic, which lets an ABC recognize any unregistered class as a subclass, as long as it passes a test that can be as simple or as complex as you like—the examples in the standard library merely check for method names.
  To sum up, I'd like to restate Alex Martelli's admonition that we should refrain from creating our own ABCs, except when we are building user—extensible frameworks—which most of the time we are not.On a daily basis, our contact with ABCs should be subclassing or registering classes with existing ABCs.Less often than subclassing or registering, we might use ABCs for isinstance checks.And even more rarely—ifever—we find occasion to write a new ABC from scratch.
  ……

用户评价

评分

听说评价还不错就买了,确实还可以

评分

挺好的一本书,适合机器学习入门,讲解详细。

评分

京东送货速度给力,商品质量靠得住!

评分

物流快,书籍活动实惠,经常在京东买书

评分

这次买京东的书太多了,有给自己买的,有给孩子买的,最近买了10000多的东西,估计没把我搬累死,自己居然全部忘记领券了,感觉自己损失了好多钱,京东能送点京豆啥的不?京东送货快,我还是很喜欢的,支持京东!

评分

正版书,速度挺快的,活动时候买的,囤了好久的书终于等到活动了。

评分

机器学习的绝佳参考书,文字朴实,通俗易懂

评分

书是好书,但送来的时候书脊端撞歪了,有点影响心情,书很好

评分

我为什么喜欢在京东买东西,因为今天买明天就可以送到。我为什么每个商品的评价都一样,因为在京东买的东西太多太多了,导致积累了很多未评价的订单,所以我统一用段话作为评价内容。京东购物这么久,有买到很好的产品

相关图书

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2025 book.cndgn.com All Rights Reserved. 新城书站 版权所有