Skip to Content
流畅的Python(第2版)
book

流畅的Python(第2版)

by Luciano Ramalho
April 2023
Intermediate to advanced
769 pages
25h 16m
Chinese
Posts & Telecom Press
Content preview from 流畅的Python(第2版)
733
结语
Python
是给法定成年人使用的语言。
——
Alan Runyan
Plone
联合创始人
Alan
的精辟定义道出了
Python
最好的特质之一
:它不妨碍你,让你做你该做的事。这也
意味着,它不会给你提供工具,让你限制其他人能对你的代码和代码所构建的对象做什么。
Python
已经
30
岁了
,受欢迎程度依然不减。当然,
Python
不完美。对我来说,最无法接
受的是,
Python
在标准库中混用驼峰式和蛇底式
,或者直接把单词连在一起。但是,语言
的定义和标准库只是生态系统的一部分。用户和贡献者组成的社区才是
Python
生态系
统最
重要的部分。
有一个例子可以说明社区的好处。撰写本书第
1
asyncio
包相关的内容时,我感到很沮
丧,因为那个包的
API
有很多函数
,其中有些是协程,可是协程必须使用
yield from
用(现在使用
await
),而常规的函数不能这么做。虽然这在
asyncio
包的文档中有说明,
但是有时阅读几段文字之后才能确定某个函数是不是协程。因此,我给
python-tulip
邮件
列表发了一则消息,题为“
Proposal:
make coroutines stand out in the asyncio docs
”。
asyncio
包的核心开发者
Victor Stinner
aiohttp
包的主要作者
Andrew Svetlov
Tornado
的首席开
发者
Ben Darnell
,以及
T
wisted
的发明者
Glyph Lefkowitz
都加入了讨论。
Darnell
提出了一
种方案,
Alexander ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python高级编程(第2版)

Python高级编程(第2版)

Posts & Telecom Press, Michał Jaworski, Tarek Ziadé
Python贝叶斯分析(第2版)

Python贝叶斯分析(第2版)

Posts & Telecom Press, Osvaldo Martin
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115612366