All right. If that sounds like a really long preamble, it is. Let's start with Python.
好,如果上面听起来像一个很长的序文,他确实是,让我们从Python开始。
I don't think either of us are thrilled with the text, it's the best we've probably found for Python, it's OK. If you need it, it's there.
我不认为我们俩对于这个课本很满意,这是我们能找到的,最好的版本了,还不错,如果你需要它,就在网站上。
Strings are captured in Python with an open quote and some sequence of characters followed by a closed quote.
字符串在Python中,是以一个开引号开始,然后后面是一系列的字符,以一个尾引号结束。
So I'm going to start today, we have about five or ten minutes left, sorry, five minutes left - in order to do this with some beginnings of Python, and we're going to pick this up obviously, next time, so; simple parts of Python.
这是我们需要学习的必要知识,我今天就会,五分钟或者十分钟的时间,对不起是五分钟,为了以Python开头来做到到这一点,我们会去学习这些。
Associated with every data type in Python is a type, which identifies the kind of thing it is.
在Python中每种类型都对应着一种数据类型,类型确定了对象的种类。
These are instances of a class, and associated with that class are a set of methods things that I can deal with.
但是Python的基本思想是相同的,这是一些一个类的实例,这个类关联了一个方法集,我可以做的一些操作。
Well this is leading up to why I want to gather things together in classes to start with.
收集起来的话题了,在Python中这么输入,然后得到值是完全合法的。
It's basically to get you to load up Python on your machine and make sure you understand how to interact with it.
它基本上让你在你的机器上,装Python语言,并确保你理解如何与它互动。
And in Python, we have two to start with; we have numbers, and we have strings.
在Python里面,我们从两个类型开始说起;,一个是数字另外一个是字符串。
So, operands. Let us take expressions, get values out, we can store them away in places, but ultimately we want to do something with them, so we need to now start talking about what are the things we can do inside of Python, or any programming language, to manipulate them.
也就是运算对象,让我们看看这些表达式,然后看看里面的这些值,我们可以把他们存在计算机的任何位置中,最终目的还是要对这些值做一些操作,因此我们现在需要开始讨论,在Python里面可以做什么,来操作它们了,或者在任何编程语言里。
The reason for pulling this out is, what you're going to see is, that in most languages, all right, Python comes built-in with something that will check your static, sorry, your syntax for you.
讲这些的原因在于,你们将要看到的是,在绝大部分语言中,好的,Python中带着一些,会检查你的static的东西,抱歉,是你的语法。
应用推荐