{{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是门很棒的编程语言,适合快速构建应用原型。《图灵程序设计丛书:Python网络编程攻略》全面介绍了Python网络编程涉及的重要问题,包括网络编程、系统和网络管理、网络监控以及Web应用开发。作者通过70多篇攻略,清晰简明地描述了各种网络任务和问题,提出了可用于多种场景的解决方案,并细致地分析了整个操作过程。无需多少Python基础知识,就可以轻松理解这些示例。如果你想开发依赖于网络协议的实用Web应用和网络应用,不能错过这本书。《图灵程序设计丛书:Python网络编程攻略》将告诉你如何开发TCP/IP网络客户端和服务器应用管理本地设备的IPv4/IPv6网络接口使用HTTP和HTTPS协议编写用途多、效率高的Web客户端编写可使用常见电子邮件协议的电子邮件客户端通过Telnet和SSH连接执行远程系统管理任务使用Web服务与流行的网站交互监控并分析重要的常见网络安全漏洞
Content Description

《图灵程序设计丛书:Python网络编程攻略》介绍了现实世界中几乎所有网络任务的真实示例,通过简明易懂的形式让读者掌握如何使用Python完成这些网络编程任务。具体说来,书中通过70多篇攻略讨论了Python网络编程的高阶话题,包括编写简单的网络客户端和服务器、HTTP协议网络编程、跨设备编程、屏幕抓取以及网络安全监控,等等。本书可以作为任何一门网络编程课程中培养实践技能的补充材料。《图灵程序设计丛书:Python网络编程攻略》需要读者对Python语言及TCP/IP等基本的网络概念有了解,但即使不精通也能通过本书理解相关概念。
《图灵程序设计丛书:Python网络编程攻略》适合网络程序员、系统/网络管理员及Web应用程序开发人员阅读。
Author Description

M. O. Faruque Sarker博士,是软件架构师,开发运维工程师,近几年主持开发了很多Python软件项目。他是多种开源技术方面的专家,对于在线学习平台、Web应用平台、敏捷软件开发等技术有深入的研究。从1999年开始,他一直在部署Linux和开源软件。他应邀参与了2009年和2010年的谷歌编程之夏,为开源项目BlueZ和Tahoe-LAFS做出了贡献。目前他在英国伦敦大学学院工作,研究方向是自组织云架构。
Comments

“对于想要深入学习Python、探索Python多用途的程序员来说,这本书是必读的。然而,在阅读之前,我想先警告你:书中某些内容会让你上瘾,无法自拔!”
——亚马逊读者评论

“想掌握Python网络编程?这本书非常有趣,你可以随意挑选任一攻略进行阅读。”
——亚马逊读者评论
Catalogue

第1章套接字、IPv4和简单的客户端/服务器编程
1.1简介
1.2打印设备名和IPv4地址
1.3获取远程设备的IP地址
1.4将IPv4地址转换成不同的格式
1.5通过指定的端口和协议找到服务名
1.6主机字节序和网络字节序之间相互转换
1.7设定并获取默认的套接字超时时间
1.8优雅地处理套接字错误
1.9修改套接字发送和接收的缓冲区大小
1.10把套接字改成阻塞或非阻塞模式
1.11重用套接字地址
1.12从网络时间服务器获取并打印当前时间
1.13编写一个SNTP客户端
1.14编写一个简单的回显客户端/服务器应用

第2章使用多路复用套接字I/O提升性能
2.1简介
2.2在套接字服务器程序中使用ForkingMixIn
2.3在套接字服务器程序中使用ThreadingMixIn
2.4使用select.select编写一个聊天室服务器
2.5使用select.epoll多路复用Web服务器
2.6使用并发库Diesel多路复用回显服务器

第3章IPv6、Unix域套接字和网络接口
3.1简介
3.2把本地端口转发到远程主机
3.3通过ICMP查验网络中的主机
3.4等待远程网络服务上线
3.5枚举设备中的接口
3.6找出设备中某个接口的IP地址
3.7探测设备中的接口是否开启
3.8检测网络中未开启的设备
3.9使用相连的套接字执行基本的进程间通信
3.10使用Unix域套接字执行进程间通信
3.11确认你使用的Python是否支持IPv6套接字
3.12从IPv6地址中提取IPv6前缀
3.13编写一个IPv6回显客户端/服务器

第4章HTTP协议网络编程
4.1简介
4.2从HTTP服务器下载数据
4.3在你的设备中伺服HTTP请求
4.4访问网站后提取cookie信息
4.5提交网页表单
4.6通过代理服务器发送Web请求
4.7使用HEAD请求检查网页是否存在
4.8把客户端伪装成Mozilla Firefox
4.9使用HTTP压缩节省Web请求消耗的带宽
4.10编写一个支持断点续传功能的HTTP容错客户端
4.11使用Python和OpenSSL编写一个简单的HTTPS服务器

第5章电子邮件协议、FTP和CGI编程
5.1简介
5.2列出FTP远程服务器中的文件
5.3把本地文件上传到远程FTP服务器中
5.4把当前工作目录中的内容压缩成ZIP文件后通过电子邮件发送
5.5通过POP3协议下载谷歌电子邮件
5.6通过IMAP协议查收远程服务器中的电子邮件
5.7通过Gmail的SMTP服务器发送带有附件的电子邮件
5.8使用CGI为基于Python的Web服务器编写一个留言板

第6章屏幕抓取和其他实用程序
6.1简介
6.2使用谷歌地图API搜索公司地址
6.3使用谷歌地图URL搜索地理坐标
6.4搜索维基百科中的文章
6.5使用谷歌搜索股价
6.6搜索GitHub中的源代码仓库
6.7读取BBC的新闻订阅源
6.8爬取网页中的链接

第7章跨设备编程
7.1简介
7.2使用telnet在远程主机中执行shell命令
7.3通过SFTP把文件复制到远程设备中
7.4打印远程设备的CPU信息
7.5在远程主机中安装Python包
7.6在远程主机中运行MySQL命令
7.7通过SSH把文件传输到远程设备中
7.8远程配置Apache运行网站

第8章使用Web服务:XML-RPC、SOAP和REST
8.1简介
8.2查询本地XML-RPC服务器
8.3编写一个多线程、多调用XML-RPC服务器
8.4运行一个支持HTTP基本认证的XML-RPC服务器
8.5使用REST从Flickr中收集一些照片信息
8.6找出亚马逊S3 Web服务支持的SOAP方法
8.7使用谷歌搜索定制信息
8.8通过商品搜索API在亚马逊中搜索图书

第9章网络监控和安全性
9.1简介
9.2嗅探网络数据包
9.3使用pcap转储器把数据包保存为pcap格式
9.4在HTTP数据包中添加额外的首部
9.5扫描远程主机的端口
9.6自定义数据包的IP地址
9.7读取保存的pcap文件以重放流量
9.8扫描数据包的广播
Introduction

很高兴看到本书出版了,我要感谢所有为本书的出版做出贡献的人。本书是Python网络编程方面的探索性指南,涉及了很多网络协议,例如TCP/UDP、HTTP/HTTPS、FTP、SMTP、POP3、IMAP、CGI等。Python功能强大且具交互性,用它来开发解决实际问题的脚本是一种享受,比如处理网络和系统管理操作、开发Web应用、与本地和远程网络交互、捕获并分析低层网络数据包,等等。本书的主要目的是教你动手完成这些任务,因此不会涉及太多理论,而是注重实践。
写作本书的过程中我一直记着要遵守“开发运维”的理念,开发者或多或少都要负责一些运维,即部署应用程序以及管理它的方方面面,例如管理远程服务器、监控、扩放以及性能优化等。书中用到了很多第三方开源Python库,有效解决了多种不同的问题。其中很多库我每天都用,通过它们自动化运行开发和运维任务简直是一种享受。例如,我使用Fabric自动完成软件开发过程中的任务。其他库也各有各的用处,例如搜索互联网、屏幕抓取、在Python脚本中发送电子邮件。
希望你能从本书的攻略中受益,并根据需求扩展它们,让其功能更强大,用起来更得心应手。
本书内容
第1章“套接字、IPv4和简单的客户端/服务器编程”通过多个小型任务讲解Python的核心网络库,教你开发一个客户端/服务器程序。
第2章“使用多路复用套接字I/O提升性能”讨论很多使用内置库和第三方库扩放客户端/服务器程序的实用技术。
第3章“IPv6、Unix域套接字和网络接口”主要关注本地设备的管理和本地网络的维护。
第4章“HTTP协议网络编程”开发一个多功能迷你命令行浏览器,可以提交表单、处理cookie、管理分段下载、压缩数据,还能通过HTTPS交付安全内容。
第5章“电子邮件协议、FTP和CGI编程”带你一起体验自动处理FTP和电子邮件相关任务的乐趣,例如管理Gmail账户、使用脚本收发邮件,还要为Web应用开发一个留言板。
第6章“屏幕抓取和其他实用程序”介绍如何使用多个第三方Python库实现一些实际的任务,例如在谷歌地图上找到公司的位置、从维基百科中抓取信息、在GitHub中搜索代码仓库,以及从BBC读取新闻。
第7章“跨设备编程”带你体验如何使用SSH自动执行系统管理和部署任务。使用SSH,在你的笔记本电脑上就可以远程执行命令、安装包,或者架设新网站。
第8章“使用Web服务:XML-RPC、SOAP和REST”介绍不同的API协议,例如XML-RPC、SOAP和REST。使用这些协议可以通过编程的方式从任何网站或Web服务中读取信息,或者与之交互。例如,可以在亚马逊或谷歌中搜索商品。
第9章“网络监控和安全性”介绍捕获、存储、分析和处理网络数据包的多种技术。了解这些技术之后,你就能使用简洁的Python脚本分析并解决网络安全问题。
阅读本书前的准备工作
你要有一个可以使用的个人电脑或者笔记本电脑,最好安装了某种现代Linux操作系统,例如 Ubuntu、Debian或CentOS等。书中大部分攻略也能在其他平台上运行,例如Windows和Mac OS。
你还需要连接互联网,以便安装攻略中提到的第三方软件库。如果不方便上网,可以下载所有第三方库,一次性安装好。

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