MINECRAFT编程:使用Python语言玩转我的世界
¥
25
2.1折
¥
118
八五品
仅1件
作者[美]Craig Richardson(克雷格·理查森)
出版社电子工业出版社
出版时间2020-04
版次1
装帧其他
货号50g
上书时间2024-10-09
商品详情
- 品相描述:八五品
图书标准信息
-
作者
[美]Craig Richardson(克雷格·理查森)
-
出版社
电子工业出版社
-
出版时间
2020-04
-
版次
1
-
ISBN
9787121383632
-
定价
118.00元
-
装帧
其他
-
开本
16开
-
纸张
胶版纸
- 【内容简介】
-
Minecraft(官方中文名为“我的世界”)是世界范围内深受玩家喜爱的一款沙盒式建造游戏。在Minecraft中,我们可以自由搭建,把理想变为现实。Python是一种功能强大且非常适合初学者学习的语言。本书将Minecraft与Python程序结合起来,使用Python更好地控制Minecraft中的项目,比如一秒钟就搭起一栋房子来。编程是有趣并充满想象力的一件事,在Minecraft中也一样。本书可以帮你在Minecraft中制作出各种各样有趣的内容,这是你成为一个伟大的程序员或Minecraft大师必须迈出的一步。本书包含12章,分别为“设置你的电脑”“使用变量传送”“利用数学快速搭建和长途旅行”“利用字符串聊天”“通过布尔运算判断真假”“用if语句做小游戏”“用while循环制作舞会和花卉游行”“函数赐予你超能力”“用表和字典击打东西”“Minecraft的for循环魔法”“从文件及模块中保存和读取建筑”“用面向对象编程将程序变优雅”。本书适合喜爱Minecraft、愿意学习编程的人学习和阅读。
- 【作者简介】
-
克雷格·理查森(Craig Richardson)是软件开发人员,Python编程教育家。他曾经在Raspberry Pi基金会工作,曾经在高中教授计算机课程,并开设了许多基于Minecraft的Python编程课程。
Creatica 酷课致力于培养孩子们的创造力、设计思维、动手能力、解决问题的能力等基本思维和技能——即所谓创客教育。Creatica酷课是一群怀有教育梦想的创新实践者,可以为学校与社会提供优质教育资源,希望通过链接产业与教育的方式,做影响一代人的教育事业。
- 【目录】
-
目 录
第1章 设置你的电脑 ·······················1
准备好你的Windows PC ························.2
安装Minecraft ·····································.2
安装Python ··········································.3
安装Java ··············································.4
安装Minecraft Python API和Spigot ···.6
运行插件并创建游戏 ·························.7
重新开始一个新的世界 ·····················.9
离线游戏 ···········································.10
改为生存模式 ···································.11
准备好你的Mac ····································.12
安装Minecraft ···································.13
安装Python ········································.15
安装Java ············································.15
安装Minecraft Python API和Spigot····.16
运行Spigot并创建游戏 ·····················.18
重新开始一个新的世界 ···················.19
离线游戏 ···········································.20
改为生存模式 ···································.20
设置你的Raspberry Pi ··························.21
认识IDLE ··············································.22
认识Python Shell ······························.23
和IDLE的文本编辑器问好 ··············.23
什么时候使用Python,什么时候
使用文本编辑器 ···························.25
本书中使用的提示符 ·······················.26
测试你的Minecraft Python是否能运行 ··.26
第2章 使用变量传送 ·····················28
什么是程序 ···········································.28
使用变量存储数据 ·······························.29
程序语言的结构 ·······························.30
变量的语法规则 ·······························.31
如何改变变量的值 ···························.32
整数 ···················································.32
任务#1 传送你的角色 ···················.33
浮点数 ···············································.38
任务#2 去你想去的地方 ···············.39
使用时间模块降低传送速度 ···············.40
任务#3 传送之旅 ···························.41
排除bug ·················································.43
任务#4 修正一个充满bug的
传送程序 ·······································.44
你学到了什么 ·······································.46
第3章 利用数学快速搭建和长途
旅行 ···························································47
表达式和语句 ·······································.47
运算符号 ···············································.48
加法 ························································.48
任务#5 堆砖块 ··································.49
任务#6 超级跳 ··································.51
减法 ························································.52
任务#7 改变你脚下的砖块 ·············.52
在参数中使用数学符号 ······················.53
任务#8 快速搭建 ······························.55
乘法 ························································.58
除法 ························································.58
任务#9 壮观的尖塔 ··························.58
指数 ·······················································.60
括号和运算顺序 ···································.61
方便的数学技巧 ···································.61
缩略符 ···············································.61
用随机数字玩游戏 ···························.62
任务#10 跳到一个新的地方 ·········.63
你学到了什么 ·······································.64
第4章 利用字符串聊天 ················65
什么是字符串 ·······································.66
print()函数 ·············································.66
任务#11 你好,Minecraft世界 ·····.67
input()函数 ············································.68
任务#12 写你自己的聊天信息 ·····.69
连接字符串 ···········································.71
将数字转换为字符串 ·······················.71
连接整数与浮点数 ···························.72
任务#13 在聊天中加入用户名 ·····.73
使用int()将字符串转变为整数 ············.74
任务#14 使用input命令建立砖块 ··.74
从异常中恢复 ·······································.76
任务#15 数字通行 ·························.77
任务#16 神奇的记录仪 ·················.79
你学到了什么 ·······································.81
第5章 通过布尔运算判断真假 ···82
布尔运算基础 ·······································.83
任务#17 停止打碎砖块 ·················.83
关联布尔运算 ·······································.84
比较符号 ···············································.85
等于 ···················································.85
任务#18 我在游泳吗 ·····················.86
不等于 ···············································.87
任务#19 我没有站在空气中吗 ·····.88
大于和小于 ·······································.89
大于或等于和小于或等于 ···············.90
任务#20 我在地面上吗 ·················.91
任务#21 我在家附近吗 ·················.92
逻辑算符 ···············································.93
and ·····················································.94
任务#22
点击展开
点击收起
— 没有更多了 —
以下为对购买帮助不大的评价