{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

Python编程之美:最佳实践指南

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

Python编程之美:最佳实践指南

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

本书由Python社区的大神Kenneth Reitz发起并组织编写,由社区数百名开发者集体奉献。特色在于,近乎完整地总结了在Python编程中会用到的各种实践技巧和经验,涵盖众多主流的应用场景,并告诉你如何提高效率、避免踩坑、编写高质量的代码。

本书涉及开发环境和部署、编写符合Pythonic品味的代码、各应用场景下主流的Python解决方案、学习资源推荐等多个方面,有足够的广度也有合适的深度。不仅如此,书中还分享了阅读代码的思路、方法和技巧,告诉你为什么这么设计……并清晰地呈现了项目结构图,有极强的学习价值。

它就像一位导师,从你步入Python编程开发的大门时起,便详细地告诉你哪些应该做,哪些不应该做以及为什么这样选择,如何做技术选型、各自的优缺点……让你在零起步的基础上,便能安心地、迅速地上手实践。

本书不仅适合初学者入门,也适合资深人士作为案头参考。


Content Description

本书是Python用户的一本百科式学习指南,由Python社区数百名成员协作奉献。全书内容分为三大部分。第一部分是关于如何配置使用Python编辑工具的;第二部分深入学习地道Python风格的代码范例;第三部分研究Python社区常用的一些代码库。本书适合有一定Python基础的人员学习,帮助你迅速从小工修炼成专家,编写出高质量的代码!

Author Description

Kenneth Reitz

Python界的大神、Python软件基金会会员,因众多开源项目而闻名(其中著名的是“ Requests: HTTP for Humans”),高颜值的摄影爱好者,电子音乐制作师,健身减肥成功的励志男……曾任Heroku公司Python架构负责人,现任职于DigitalOcean。


Tanya Schlusser

数据决策方向的独立顾问,为学生和企业团队提供的数据科学培训时长已超过1000小时,并照顾患有阿兹海默症的妈妈。


Comments

本书是Python开发者的实操指引,Kenneth Reitz 出品,必属精品。

——刘志军 公众号“Python之禅”出品人

本书不仅仅是一本Python教程,更多的是通过一些优秀项目源码,向读者阐释了如何写出更优雅的Python代码……有助于Python学习者完成向 Pythonic 的转变。

——Crossin 公众号“Crossin的编程教室”作者、码课创始人

此书帮助开发者破解了一些常见疑惑,提供了具有实践价值的指南。

——齐伟 “跟老齐学Python”系列图书作者


学习一门编程语言,从入门到进阶的一条捷径就是学习前辈专家的开发经验,而这本书正是这些专家经验的总结。

——杨学光 Django中文社区发起人


这真是一本令人惊叹的好书!它并不是教授Python语言本身的,而是假定你已经有了一定的编程基础。它阐述的是编程相关的知识点:何时、何地、怎样运用Python,如何使用各类Python工具……这使得你可以高效地编写代码、运维程序,并与其他程序优雅的交互。

——读者


本书是Python开发必备。对于新手来说,它是一份记录社区约定和实践的学习资源,其价值不可估量。

——Eric Holscher,Read the Docs公司(readthedocs.org)的联合创始人


Catalogue

目录

前言 xix

第1 部分起步

第1 章选择一个解释器 3

Python 2 与Python 3 的状况对比 3

建议 3

那就选择Python 3 吗 4

Python 的不同实现 4

CPython 5

Stackless 5

PyPy 5

Jython 5

IronPython 6

PythonNet 6

Skulpt 6

MicroPython 7

第2 章恰当地安装Python 9

在Mac OS X 上安装Python 9

Setuptools 和pip 11

virtualenv 11

在Linux 上安装Python 12

Setuptools 和pip 12

开发工具 13

virtualenv 14

在Windows 上安装Python 15

Setuptools 和pip 17

virtualenv 17

商业化Python 二次发行版 18

第3 章搭建开发环境 21

文本编辑器 21

Sublime Text 22

Vim 23

Emacs 25

TextMate 26

Atom 26

Code 26

IDE 27

PyCharm IntelliJ IDEA 28

Aptana Studio 3 Eclipse+LiClipse+PyDev 29

WingIDE 29

Spyder 30

NINJA-IDE 30

Komodo IDE 30

Eric(Eric Python IDE) 31

Visual Studio 31

增强型交互式工具 32

IDLE 32

IPython 32

bpython 33

环境隔离工具 33

虚拟环境 33

pyenv 35

Autoenv 36

virtualenvwrapper 36

Buildout 37

Conda 38

Docker 39

第2 部分步入正题

第4 章编写高质量的代码 43

代码风格 43

PEP 8 43

PEP 20(又名Python 之禅) 44

一般性建议 45

约定 52

习语 55

常见陷阱 58

组织好项目的结构 61

模块 61

包 65

面向对象编程 66

装饰器 67

动态类型 68

可变类型和不可变类型 69

管理依赖 71

测试代码 72

测试的基础知识 73

举例说明 76

其他流行工具 80

文档 82

项目文档 82

项目配套发行文档 83

文档字符串与块注释 84

日志 84

在库中使用logging 85

在应用中使用logging 86

选择许可证 88

上游许可证 88

许可证选项 89

软件许可相关的学习资源 90

第5 章阅读高质量的代码 91

共同特征 92

HowDoI 92

阅读单文件脚本 93

取自HowDoI 的结构示例 96

取自HowDoI 的风格示例 97

Diamond 99

阅读一个更大的应用程序 99

取自Diamond 的结构示例 105

取自Diamond 的风格示例 109

Tablib 111

阅读一个小型库 112

取自Tablib 的结构示例 115

取自Tablib 的风格示例 123

Requests 126

阅读一个更大的库 126

取自Requests 的结构示例 130

取自Requests 的风格示例 134

Werkzeug 139

阅读一个工具包的代码 140

取自Werkzeug 的风格示例 148

取自Werkzeug 的结构示例 149

Flask 156

阅读一个框架的代码 156

取自Flask 的风格示例 163

取自Flask 的结构示例 164

第6 章交付高质量的代码 169

有用的词汇和概念 170

打包你的代码 171

Conda 171

PyPI 171

冻结你的代码 174

PyInstaller 176

cx_Freeze 178

py2app 179

py2exe 180

bbFreeze 181

Linux 已构建分发包的打包技术 181

可执行的ZIP 文件 183

第3 部分场景化指南

第7 章用户交互 187

Jupyter Notebooks 项目 187

命令行应用 188

图形化用户界面应用 196

窗口部件库 196

游戏开发 202

Web 应用 203

Web 框架 微框架 203

Web 模板引擎 206

Web 部署 212

第8 章代码管理和改进 215

持续集成 215

系统管理 216

服务器自动化 218

系统和任务监控 222

加速 225

与C C++ FORTRAN 库进行交互 235

第9 章软件接口 239

Web 客户端库 240

Web API 240

数据序列化 245

分布式系统 248

网络编程 248

密码技术 254

第10 章数据操作 261

科学应用 262

文本操作和文本挖掘 266

Python 标准库中的字符串工具 266

图像操作 269

第11 章数据持久化 273

结构化文件 273

数据库接口库 274

附录A补充说明 289


Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book