父与子的编程之旅:与爸爸一起学Python

副标题:无

作   者:贾炜

分类号:

ISBN:9787301308097

微信扫一扫,移动浏览光盘

简介


本书分为12个单元,通过科学、合理的结构,以亲切的笔调、活泼的对话介绍了Python编程的相关知识。用有趣的例子,借助可爱的漫画生动形象地介绍了包括变量、输入输出语句、循环语句、列表、对象等编程的基本概念。学习本书的内容,可以帮助孩子掌握计算机的思维方式,而书中可视化和以游戏为主的例子可以激发孩子的学习兴趣,培养其专注力。
本书每单元末尾均设置有“小试牛刀”和“小小总结”板块,可以拓展读者的思维,巩固学习的知识和技能。本书是写给孩子看的Python编程书,也适合父母、老师、学生,以及想要了解计算机编程基础知识、学习Python编程技能的未成年人阅读,同时还可以作为少儿编程的教材参考用书。


目录


单元一 认识 Python 语言 13
1.1 什么是人工智能14
1.2 了解 Python 编程语言17
1.3 Python 与人工智能 18
1.4 编写 Python 程序19
小试 牛刀26
小小 总结··················································································· 27
单元二 加减乘除样样行 ··················································· 29
2.1 加减法运算 ··········································································· 30
2.2 乘法运算·············································································· 34
2.3 除法运算·············································································· 36
2.4 取余运算·············································································· 38
2.5 输入函数 input ······································································ 39
单元三 判断与比较 ························································· 45
3.1 关系运算符 ··········································································· 46
3.2 True(真)和 False(假)······················································· 47
3.3 如果……那么……·································································· 49
3.4 如果……那么……否则……······················································ 52
单元四 海龟漫步 ···························································· 57
4.1 画一条直线 ··········································································· 58
4.2 画等边三角形········································································ 60
4.3 画正方形···············································································61
4.4 画圆形················································································· 63
4.5 给图形加点颜色····································································· 65
单元五 琢磨不透的随机数 ················································ 71
5.1 一个随机数 ··········································································· 72
5.2 与电脑猜拳··········································································· 75
5.3 随机漫步·············································································· 79
单元六 永不休止的循环 ··················································· 87
6.1 循环举例 ·············································································· 88
6.2 有限循环·············································································· 89
6.3 无限循环·············································································· 92
单元七 一个大容器 ························································· 99
单元八 程序也有组织 ·····················································109
8.1 给程序取个名字 ···································································· 110
8.2 函数的参数·········································································· 113
8.3 函数的返回值······································································· 116
单元九 信息的长久保存 ················································· 123
9.1 文件的建立 ··········································································124
9.2 读取文件内容·······································································125
9.3 向文件写入内容····································································127
9.4 文件追加内容······································································· 131
单元十 我的零花钱我管理 ···············································139
单元十一 面向对象编程很简单 ·········································155
11.1 何为面向对象 ······································································156
11.2 如何创建一个类···································································157
11.3 类的属性与方法···································································158
11.4 对象的创建·········································································160
单元十二 弹球游戏 ························································165
附录 A Python 的安装与配置··········································183
附录 B 专业词汇速查表··················································190


已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

父与子的编程之旅:与爸爸一起学Python
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon