{{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编程入门(第3版)

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

Python编程入门(第3版)

{{__(":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基础知识的不二选择 从算术运算、字符串、变量,到函数、数据结构、输入输出和异常处理,应有尽有!

Content Description

Python是一种解释型、面向对象、动态数据类型的高级程序设计语言,自20世纪90年代初诞生至今,逐渐被广泛应用于处理系统管理任务和Web编程。
《Python编程入门》用通俗易懂的语言结合常见任务、屏幕图和详细的解释,循序渐进地介绍了Python的基础知识,助你轻松、迅速地学习Python。书中没有深奥的理论或者高级应用,非常适合用来自学。读罢本书,你定能掌握Python的各项基础知识,成为一名真正的Python程序员!
Author Description

Toby Donaldson,加拿大温哥华西蒙弗雷泽大学计算机科学系高级讲师,教授编程和计算机课程十余年。拥有人工智能博士学位,至今依然醉心于将所学用于他的吸尘机器人。教学之余酷爱鼓捣,拿到什么鼓捣什么。

译者简介:
袁国忠,自由译者。2000年起专事翻译,至今已有14个年头。主译图书,偶译新闻稿、软文。出版译著40余部,其中包括《C++ Prime Plus中文版》、《CCNA学习指南》、《CCNP ROUTE学习指南》、《面向模式的软件架构:资源管理模式》、《风投的选择:谁是下一个十亿美元级公司》等,总计700余万字。专事翻译前,从事过三年化工产品分析和开发工作,做过两年杂志和图书编辑。
Catalogue

第1章编程简介
1.1 Python语言
1.2 Python适合用于做什么
1.3 程序员如何工作
1.4 安装Python
1.4.1 在Windows系统上安装Python
1.4.2 在Mac系统上安装Python.
1.4.3 在Linux系统上安装Python

第2章算术、字符串与变量
2.1 交互式命令shell
2.1.1 shell提示符
2.1.2 记录
2.2 整数算术
2.2.1 整除
2.2.2 求值顺序
2.2.3 长度不受限制
2.3 浮点数算术
2.3.1 浮点数字面量
2.3.2 溢出
2.3.3 精度有限
2.3.4 复数
2.4 其他数学函数
2.4.1 使用返回值
2.4.2 导入模块
2.5 字符串
2.5.1 标识字符串
2.5.2 字符串的长度
2.6 字符串拼接
2.7 获取帮助
2.7.1 列出模块中的函数
2.7.2 打印文档字符串
2.8 类型转换
2.8.1 将整数和字符串转换为浮点数
2.8.2 将整数和浮点数转换为字符串
2.8.3 将浮点数转换为整数
2.8.4 将字符串转换为数字
2.9 变量和值
2.10 赋值语句
2.11 变量如何引用值
2.11.1 赋值时不复制
2.11.2 数字和字符串是不可变的
2.12 多重赋值

第3章编写程序
3.1 使用IDLE的编辑器
3.1.1 在IDLE中编写程序
3.1.2 从命令行运行程序
3.1.3 从命令行调用Python
3.2 编译源代码
3.3 从键盘读取字符串
3.3.1 跟踪程序
3.3.2 从键盘读取数字
3.4 在屏幕上打印字符串
3.5 源代码注释
3.6 程序的组织

第4章流程控制
4.1 布尔逻辑
4.1.1 逻辑相等
4.1.2 逻辑与
4.1.3 逻辑或
4.1.4 逻辑非
4.1.5 计算较长的布尔表达式
4.1.6 计算包含圆括号的布尔表达式
4.1.7 计算不包含圆括号的布尔表达式
4.1.8 短路求值
4.2 if 语句
4.3 代码块和缩进
4.3.1 if/elif 语句
4.3.2 条件表达式
4.4 循环
4.4.1 for 循环
4.4.2 while 循环
4.5 比较for 循环和while 循环
4.5.1 计算阶乘
4.5.2 计算用户输入的数字的总和
4.5.3 计算未知个数字的总和
4.6 跳出循环和语句块
4.7 循环中的循环

第5 章函数
5.1 调用函数
5.1.1 不返回值的函数
5.1.2 给函数名赋值
5.2 定义函数
5.3 变量的作用域
5.4 使用main 函数
5.5 函数的参数
5.5.1 按引用传递
5.5.2 一个重要示例
5.5.3 默认值
5.5.4 关键字参数
5.6 模块
5.6.1 创建Python 模块
5.6.2 名称空间

第6 章字符串
6.1 字符串索引
6.1.1 负数索引
6.1.2 使用for 循环访问字符
6.2 字符
6.3 字符串切片
6.3.1 获取切片的捷径
6.3.2 使用负数索引的切片
6.4 标准字符串函数
6.4.1 测试函数
6.4.2 搜索函数
6.4.3 改变大小写的函数
6.4.4 设置格式的函数
6.4.5 剥除函数
6.4.6 拆分函数
6.4.7 替换函数
6.4.8 其他函数
6.5 正则表达式
6.5.1 简单的正则表达式
6.5.2 使用正则表达式匹配字符串
6.5.3 其他正则表达式

第7 章数据结构
7.1 type 命令
7.2 序列
7.3 元组
7.3.1 元组是不可变的
7.3.2 元组函数
7.4 列表
7.5 列表函数
7.6 列表排序
7.7 列表解析
7.7.1 列表解析示例
7.7.2 使用列表解析进行筛选
7.8 字典
7.8.1 对键的限制
7.8.2 字典函数
7.9 集合

第8 章输入和输出
8.1 设置字符串格式
8.1.1 字符串插入
8.1.2 转换说明符
8.2 格式字符串
8.3 读写文件
8.3.1 文件夹
8.3.2 当前工作目录
8.4 检查文件和文件夹
8.5 处理文本文件
8.5.1 逐行读取文本文件
8.5.2 将整个文本文件作为一个字符串进行读取
8.5.3 写入文本文件
8.5.4 附加到文本文件末尾
8.5.5 将字符串插入到文件开头
8.6 处理二进制文件
8.7 读取网页

第9 章异常处理
9.1 异常
9.2 捕获异常
9.2.1 try/except 块
9.2.2 捕获多种异常
9.2.3 捕获所有异常
9.3 清理操作

第10 章面向对象编程
10.1 编写类
10.2 显示对象
10.3 灵活的初始化
10.4 设置函数和获取函数
10.4.1 特性装饰器
10.4.2 私有变量
10.5 继承
10.6 多态
10.6.1 实现get_move 函数
10.6.2 玩游戏Undercut
10.7 更深入地学习

第11 章案例研究:文本统计
11.1 问题描述
11.2 保留想要的字母
11.3 使用大型数据文件测试代码
11.4 找出出现次数较多的单词
11.5 将字符串转换为次数字典
11.6 组织在一起
11.7 练习
11.8 最终的程序
附录A 深受欢迎的Python 包
附录B 比较Python 2 和Python 3
索引
Book Abstract

【第1章:编程简介】
深入探讨Python编程之前,先大致了解一下Python是什么及其可用于编写哪些类型的程序,这大有裨益。本章还将概述程序员所做的工作。最后将介绍如何安装Python及运行其自带的IDLE编辑器。
如果你是编程新手,本章可助你为学习Python编程语言做好准备。
如果你已掌握这些基本概念,可跳到有关如何安装Python和运行编辑器的章节。
本章内容
Python语言
Python适合用于做什么
程序员如何工作
安装Python
1.1 Python语言
那么Python是什么呢?简单地说,它是一种计算机编程语言及一组配套的软件工具和库。Python最初由GuidovanRossum于20世纪90年代初开发,当前由世界各地的数十位程序员(包括vanRossum)负责维护。
Python易于理解和学习。相比于用其他大多数编程语言编写的程序,Python程序更整洁:Python几乎没有多余的符号,且使用的是简单易懂的英语名称。
Python语言的效率极高。精通Python后,与使用其他大多数编程语言相比,使用Python可在更短的时间内完成更多的工作。Python支持但不强制你使用面向对象编程(OOP)。
Python自带了各种现成库,供你在自己的程序中使用。有些Python程序员喜欢这样说:Python“开箱即可使用”。
Python的一个极其实用的特点是易于维护。鉴于Python程序理解和修改起来相对容易,程序员可轻松地确保它们紧跟潮流。在程序员所做的工作中,程序维护所占的比例很可能高达甚至超过50%,因此在很多专业人士看来,Python对维护的支持是个亮点。
最后,说说名称Python的由来。据Python之父GuidovanRossum说,Python是以喜剧团体MontyPython(巨蟒小组)的名字命名的。虽然这种起源充满喜庆色彩,但Python当前使用的标识确乎是两条缠在一起的蛇(可能是蟒蛇),其中一条为蓝色,另一条为黄色。
1.2 Python适合用于做什么
虽然Python是一种通用语言,可用于编写任何类型的程序,但它最常用于编写下述应用程序。

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