{{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语言的基础知识,以及使用Python语言的实际开发应用实例,介绍如何使用计算机进行问题求解、结构化编程以及面向对象编程。
本书共8章,主要内容包括:计算机与问题求解简介,核心对象、变量、输入和输出,控制流结构,函数,数据处理,异常处理、随机数、递归等其他主题,面向对象编程,图形用户界面。此外,各节后都给出了大量的习题、编程项目、实践问题等,帮助读者进一步巩固学习。
Content Description

本书共8章,主要内容包括:计算机与问题求解简介,核心对象、变量、输入和输出,控制流结构,函数,数据处理,异常处理、随机数、递归等其他主题,面向对象编程,图形用户界面。此外,各节后都给出了大量的习题、编程项目、实践问题等,帮助读者进一步巩固学习。
Author Description

戴维 I. 施奈德(David I. Schneider) ,拥 有麻省理工学院数学博士学位,在马里兰大学任教三十多年。他编写了28本书,一半以上是计算机程序设计类图书。他开发了3个定制的软件包,为55本数学教 材提供教辅资料。他与计算机的渊源可以追溯到1962年,当时他在MIT林肯实验室设计了一个专用计算机用于纠正通信系统中的误差。戴维 I. 施奈德(David I. Schneider),拥有麻省理工学院数学博士学位,在马里兰大学任教三十多年。他编写了28本书,一半以上是计算机程序设计类图书。他开发了3个定制的软件包,为55本数学教材提供教辅资料。他与计算机的渊源可以追溯到1962年,当时他在MIT林肯实验室设计了一个专用计算机用于纠正通信系统中的误差。
Catalogue

An Introduction to Programming Using Python
出版者的话
译者序
前言
第1章计算与问题求解简介 1
1.1计算与Python简介 1
1.2程序开发周期 3
1.3编程工具 4
1.4Python简介 11
第2章核心对象、变量、输入和输出 19
2.1数值 19
2.2字符串 29
2.3输出 42
2.4列表、元组和文件 50
关键术语和概念 62
编程项目 64
第3章控制流结构 67
3.1关系和逻辑运算符 67
3.2判断结构 77
3.3while循环 92
3.4for循环 103
关键术语和概念 120
编程项目 121
第4章函数 125
4.1函数(第一部分) 125
4.2函数(第二部分) 144
4.3程序设计 160
关键术语和概念 163
编程项目 165
第5章数据处理 168
5.1数据处理(第一部分) 168
5.2数据处理(第二部分) 183
5.3字典 195
关键术语和概念 209
编程项目 211
第6章其他主题 216
6.1异常处理 216
6.2生成随机数 223
6.3海龟图 229
6.4递归 239
关键术语和概念 246
编程项目 247
第7章面向对象编程 250
7.1类与对象 250
7.2继承 262
关键术语和概念 273
编程项目 274
第8章图形用户界面 276
8.1控件 276
8.2网格布局管理器 288
8.3编写GUI程序 295
关键术语和概念 302
编程项目 304
附录AASCII值 306
附录B保留字 308
附录C安装Python和IDLE 309
奇数编号习题答案 311
索引 359
Introduction

An Introduction to Programming Using Python
自20世纪90年代诞生以来,Python已经成为软件行业中应用最为广泛的编程语言之一。学习第一门编程语言的学生也发现,Python是理解计算机程序开发的理想工具。
这本书的写作目标如下:
1. 重点突出。集中介绍重要的主题,而不是泛泛地覆盖许多主题。
2. 使用学生耳熟能详的例子和相关习题。经常使用真实的数据。例子简洁明了,尽量向学生展示编程技术,而不去分散他们的注意力。
3. 通俗易懂,内容丰富。首先讨论每个主题的要点,然后再以注释的形式展示次要的细节。
4. 教授好的编程实践,与现代编程方法相接轨。全面讨论问题求解技术、结构化编程以及面向对象编程。
5. 深入介绍计算机的主要应用。
本书特色
编程项目。从第2章开始,每章都包含编程项目。编程项目反映了计算机的不同使用方法。数量多、难度不一的编程项目使本书适用于不同兴趣和层次的学生。后面章节的一些编程项目可以留作学期末项目。
大多数章节的习题。教授编程的每个章节都有一个习题集。这些习题既可以增强学生对这些章节关键思想的理解,又为学生探索更多的应用提出了挑战。大部分习题集需要学生跟踪程序、找到错误以及编写程序。本书中,除了6.3节以及第8章外,奇数编号习题的答案在本书的最后给出。几乎每个编程习题以及编程项目都配有一个可能的输出。
实践问题。在每节的习题之前,都有一些精选的实践问题。习题后面是完备的答案。实践问题经常集中于那些可能易混淆的要点上,在学生深入思考之后,就会透彻理解这些要点。在做习题之前,读者应该认真地试着解一下这些实践问题并且研究它们的答案。
注释。在每节最后,都有一些扩展以及新的主题,它们被置于“注释”部分,以便这些内容不会影响行文的流畅性。
关键术语和概念。在第2章到第8章中,在每章的最后给出关键术语和概念(以及示例)。
应用问题指南。该部分提供了程序的索引,讨论多种主题,包括商务、经济、数学以及体育。
解题手册。学生解题手册包括奇数编号习题的答案(不包括编程项目的答案)。教师解题手册包括所有习题和编程项目的答案。两本解题手册都是PDF格式的,并且能够从Pearson的网站上下载。
源代码和数据文件。全部示例的程序以及习题所需的数据文件都能从Pearson的网站上下载。
教师和学生资源
教师资源
测试项文件
PPT课件
教师解题手册
所有示例的程序以及习题和编程项目的答案(习题所需的数据文件在Programs文件夹下)
学生资源
学生解题手册
示例的程序(习题所需的数据文件在Programs文件夹下)
致谢
在本书写作过程中,许多优秀的研究者和程序员给予了富有建设性的意见和建议,我由衷地对他们的贡献表示感谢。以下审阅者为本书的编写提供了大量有价值的建议:
Daniel Solarek, 托莱多大学
David M. Reed, 首都大学
Debraj De, 佐治亚州
Desmond Chun, 夏波学院
Mark Coffey, 科罗拉多矿业大学
Randall Alexander, 查尔斯顿学院
Vineyak Tanksale, 鲍尔州立大学
Zhi Wei, 新泽西理工学院
很多人为本书的成功出版提供了帮助。我要感谢Pearson的团队,本书的出版离不开他们的支持和鼓励,特别要感谢计算机科学部门程序管理经理Carole Synyder,计算机科学部门编辑助理Kelsey Loanes和产品经理主管Scott Disanno。
我要感谢Jacob Saina在本书编写过程中各个阶段的帮助。出版编辑Pavithra Jayapaul和Greg Dulles为本书的出版做了许多工作,使之能按计划推进。我要感谢阿克伦大学的Kathy Liszka博士,他为本书制作了题库,感谢莱托诺大学的Steve Armstrong博士,他为本书制作了配套的PPT课件。本书在出版过程中也离不开来自Jouve India的Shylaja Gattupalli的帮助。
特别要感谢我的主编Tracy Johnson。她的想法和热情为本书的筹备工作提供了巨大的帮助。
David I. Schneider
dis@alum.mit.edu


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