流利的Python语言(影印版第2版上下)
- ISBN:9787576601473
- 装帧:一般胶版纸
- 册数:暂无
- 重量:暂无
- 开本:16开
- 页数:983
- 出版时间:2022-09-01
- 条形码:9787576601473 ; 978-7-5766-0147-3
内容简介
别浪费时间让Python去适应你在其他语言中学到的模式。尽管Python的简单性可迅速提高你的工作效率,但这往往意味着你并未运用该语言所提供的所有特性。通过这本实践指南的更新版,你将学会如何利用很好理念来编写有效的现代Python 3代码。 发现并应用超出你过往经验之外的Python 3惯用特性。作者Luciano Ramalho将带你了解Python的核心语言特性和库,并教你如何使代码更短、更快、更具可读性。 新版进行了重大的更新,共包含五部分,每部分都相当于一本迷你书: 数据结构:序列、字典、集合、Unicode和数据类。 作为对象的函数:头等函数、相关设计模式和函数声明中的类型提示。 面向对象的惯用法:组合、继承、mixin、接口、运算符重载、协议和更多静态类型。 控制流:上下文管理器、生成器、协程、async/await和线程/进程池。 元编程:属性、特性描述符、类装饰器以及替代或简化元类的新类元编程钩子。
目录
Preface
Part I. Data Structures
1. The Python Data Model
What's New in This Chapter
A Pythonic Card Deck
How Special Methods Are Used
Emulating Numeric Types
String Representation
Boolean Value of a Custom Type
Collection API
Overview of Special Methods
Why len Is Not a Method
Chapter Summary
Further Reading
2. An Array of Sequences
What's New in This Chapter
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 lust Immutable Lists
Tuples as Records
Tuples as Immutable Lists
Comparing Tuple and List Methods
Unpacking Sequences and Iterables
Using * to Grab Excess Items
Unpacking with in Function Calls and Sequence Literals
Nested Unpacking
Pattern Matching with Sequences
Pattern Matching Sequences in an Interpreter
Slicing
Why Slices and Ranges 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 Versus the sorted Built-In
When a List Is Not the Answer
Arrays
Memory Views
NumPy
Deques and Other Queues
Chapter Summary
Further Reading
3. Dictionaries and Sets
作者简介
卢西亚诺·拉马略,1998开始成为Python程序员,是Python软件基金会的会员,巴西培训公司Python.pro.br的共同所有人,巴西 家黑客空间Garoa Hacker Clube的联合创始人。他领导过软件开发团队,并在巴西的媒体、银行和政府部门教授过Python课程。
-
认识电竞
¥36.0¥58.0 -
整理优先:小改进,大回报,整洁代码设计指南
¥37.7¥49.0 -
软件开发技术基础 第4版
¥64.7¥79.9 -
生成式人工智能(AIGC)应用
¥63.9¥90.0 -
开启创意之门 AIGC创作一本通
¥62.9¥89.8 -
软件测试
¥50.3¥68.0 -
AIGC文图学 人类3.0时代的生产力
¥35.0¥48.0 -
AFter Effects 影视后期特效实战教程
¥47.5¥69.8 -
生物特征识别算法研究
¥18.7¥39.0 -
计算机视觉:从感知到重建
¥105.8¥149.0 -
做好课题申报:AI辅助申请书写作
¥53.1¥69.8 -
大模型应用开发极简入门 基于GPT-4和ChatGPT
¥49.0¥59.8 -
软件质量管理实践
¥48.3¥69.0 -
这就是ChatGPT
¥45.5¥59.8 -
AI时代程序员开发之道:CHATGPT让程序员插上翅膀
¥59.3¥79.0 -
一本书玩转MIDJOURNEY:人人都可以体验AI绘画的魅力
¥66.7¥139.0 -
必然(修订版)
¥73.9¥89.0 -
GPT时代人类再腾飞
¥56.6¥89.9 -
和秋叶一起学EXCEL(第3版)
¥76.9¥109.9 -
ARDUINO编程从零开始(第3版)
¥36.9¥49.8