波罗蜜多 python之旅_Python简介,序言–未来之旅

波罗蜜多 python之旅



Data Rebellion presents

数据叛乱呈现

恶魔与矮人,Python冒险简介 (Demons and Dwarves, An Intro to Python Adventure)



呼吁冒险 (Call to Adventure)

A shadow falls over the land. Hero after hero arises to confront the encroaching evil, yet hero after hero is mercilessly slain (or accepts an offer for a pretty sweet management gig). Now, only two things stand between the all-powerful Emperor and his plans of enslaving every sentient lifeform in existence: a dwarven office clerk and the Python programming language. Welcome to the world of Demons and Dwarves.

阴影笼罩着大地。 一个又一个又一个的英雄面对邪恶的侵略者崛起,但一个又一个的英雄却被残酷地杀害(或接受一份相当不错的管理合同)。 现在,在功能强大的皇帝与奴役存在的所有有生命力的计划之间,只有两件事:矮小的办公室文员和Python编程语言。 欢迎来到魔鬼与矮人的世界。

Demons and Dwarves is an introductory Python programming course in the form of a story that revolves around a puzzle. The first person to solve the puzzle with Python is the winner and, in addition to unlocking the story’s ending and having their name and code memorialized there, gets to choose which charity to have $500 donated to. There are eight chapters in total which will be published one or two at a time over the course of several weeks.

《恶魔与矮人》是一门介绍Python编程的入门课程,其内容围绕一个难题展开。 第一个使用Python解决难题的人是获胜者,除了解锁故事的结尾并在其中纪念他们的名称和代码外,还可以选择将500美元捐赠给哪个慈善机构。 一共有八章,将在几周内一次出版一到两章。

Answers can be submitted as comments in the Prologue. If you get the correct answer, I’ll email you and ask for your code (via the email you have to provide when leaving a comment, which is only visible to me). The first person to reply to me with Python code that correctly works through every part of the puzzle is the winner. If you’re first to leave a comment with the correct answer but don’t provide your code, your code doesn’t check out, or you use a language besides Python, you won’t be declared the winner but you’ll still get an honorable mention.

答案可以在序言中作为评论提交。 如果您得到正确的答案,我会给您发送电子邮件并要求您提供验证码(通过在发表评论时必须提供的电子邮件(仅对我可见))。 赢家是第一个使用正确处理难题各个部分的Python代码回复我的人。 如果您是第一个提出正确答案的评论者,但不提供您的代码,则您的代码没有签出,或者您使用的是Python以外的语言,那么您将不会被宣布为获胜者,但您仍然会获得荣誉奖。

There are one or more hints in every chapter, some more subtle than others. It is possible to solve the puzzle without any hints, though by the time the eighth chapter is published the hints will have made the puzzle somewhat easier.

每章中都有一个或多个提示,其中一些提示比其他提示更微妙。 尽管没有任何提示,也可以解决难题,尽管到第八章出版时,这些提示将使难题更容易一些。



为未来的旅程做准备 (Preparing for the Journey Ahead)

To get the most out of Demons and Dwarves you will want to not only run the code that occurs in the story as you read through it, but tinker with the code and test creative hypotheses about what might work and why. The more errors the merrier.

为了最大程度地利用“恶魔和矮人”,您不仅要运行故事中出现的代码,还要修改代码并测试关于什么可行以及为什么的创造性假设。 错误越多越好。

To run your code, you’re going to need a code editor. Here are a few options that I suggest:

要运行代码,您将需要一个代码编辑器。 我建议您使用以下几种方法:

  • repl.it :方便的在线编辑器。 您甚至可以注册一个免费帐户,然后将代码保存在那里。
  • Python IDLE: Python安装随附的基本编辑器
  • Spyder: Anaconda安装随附的高级编辑器

If you’re brand new to programming, you may also want to read up on the difference between running code in interactive mode versus script mode, as the code in some parts of the story will be easier to run in a particular mode.

如果您是编程的新手,您可能还想了解以交互方式运行的代码与以脚本方式运行的代码之间的区别,因为故事中某些部分的代码将更易于在特定模式下运行。

Leave a comment if you have any questions.

如有任何疑问,请发表评论。

GL HF

玻璃纤维



目录
  • 序言–门
    第1章-算术和变量
    第2章-字符串和列表
    第三章–条件语句
    第四章功能
    第5章-循环
    第6章–内置函数和方法
    第7章-导入和嵌套
    第8章–开门
(Table of Contents
  • Prologue – The Door
    Chapter 1 – Arithmetic and Variables
    Chapter 2 – Strings and Lists
    Chapter 3 – Conditional Statements
    Chapter 4 – Functions
    Chapter 5 – Loops
    Chapter 6 – Built-in Functions and Methods
    Chapter 7 – Imports and Nesting
    Chapter 8 – Opening the Door
)




翻译自: https://www.pybloggers.com/2017/10/intro-to-python-preface-the-journey-ahead/

波罗蜜多 python之旅

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值