流利的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.
  ……

用戶評價

評分

書本身的質量不錯,內容對學習有很大的幫助!

評分

進一步提高python的好書,讀起來就放不下瞭。好書。

評分

很不錯的書,講的內容非常實用和具體,贊一個!

評分

很好,價格小貴,希望便宜些,支持更多英文影印書。

評分

書是正版,質量很好。是很好的參考書

評分

書不便宜瞭,粗略翻下,內容貌似真是好基礎,沒有什麼實例,都是各種介紹,感覺有點虧瞭

評分

書是正版,質量很好。是很好的參考書

評分

買來看看,下載的看起來實在不方便,纍眼睛

評分

京東上的東西我覺得非常好,我的所有東西都在京東上麵買的,送貨速度非常快,買瞭東西就知道什麼時候來,我在京東買東西好多年瞭,京東的東西都是正品,售後服務特彆好,我太喜歡瞭!這次買的東西還是一如繼往的好,買瞭我就迫不及待的打開,確實很不錯,我真是太喜歡瞭。在京東消費很多,都成鑽石會員瞭,哈哈,以後還會買,所有的東西都在京東買,京東商城是生活首選!

相關圖書

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

© 2025 book.tinynews.org All Rights Reserved. 静思书屋 版权所有