Now when the only types we're dealing with are the built-in types, the ones that came with the programming language, that doesn't really matter.
现在我们对付的数据类型,只有内置的数据类型,也就是编程语言固有的类型。
Computer programming is a lot like learning a different language,
电脑编程很像是学习一种不同的语言,
I give you a little animation that was implemented with this programming language in just a night called Raining Men.
这里有一个用这种语言编写的,叫做Raining,Men的小动画,我只用了一晚上就完成了编程。
What we're going to see with programming language is that we're going to use higher-level abstracts.
我们将要看到的是,我们将会在高端的阶段中使用编程语言。
3 So here what I'm doing is 17 divided by 13, but because of this parenthetical, , -- because of that parenthetical -- that has nothing to do with math; -- this is a programming language thing -- that is a casting operation.
所以这里我要做的是用17除以,但因为这样的题外话,因为那样的题外话-,还是没有做完这个数学题;,这是一个编程语言的东西-,那是一个计算操作。
itself and introduce Scratch, the programming language in an environment we looked at, but also some of the fundamentals that we'll lace throughout the course.
这周五我们就开始讲计算机科学,并在我们设定的环境下,介绍编程语言Scratch的用法,而且我们也会在课程中,捎带讲一些基础知识。
And there is no programming language that is better well actually, that's not quite true, there are some better at doing certain kinds of things but there's nothing that you can do in C that you can't do in Fortran.
没有一种编程语言是更优秀的,当然实际上,这并不是完全对的,在做某些事儿时一些语言会更好用,但是没有事情是你能在C语言中做,而不能在Fortran中做的。
A low-level language, we used to call this assembly programming, you're down at the level of, your primitives are literally moving pieces of data from one location of memory to another, through a very simple operation.
一个低级的语言,我们曾经将其称为假设编程,你们只是处于用基本要素,把一些数据碎片,从记忆存储器的一个地方,通过简单的操作来转到另外一个地方。
And so you get to build your own special purpose programming language that helped you solve your problems in biology or finance or whatever,
你读过的类型都可以,所以你就可以让编程语言按照你的,特殊用途去解决你的生物学,财务或者任何类型的问题,
And this too is where the power of recursion comes in in a programming language.
这也是在编程语言中,对递归很有影响的一点。
A couple of really interesting consequences of that, by the way, one of them is, it says, anything you can do in one programming language you can do in another programming language.
一些真正有趣的后果是,顺便说一句,其中之一是,它说你在一种编程语言中,能做的事情,在另一种语言中也能做。
And today nobody advocates a programming language that does not support it in some sort of way.
今天没有人会推荐一种,不支持面向对象编程的语言。
Because, well, the programming language means everybody has access to those operations.
这个时候这没什么关系,因为编程语言内置也就意味着。
Pseudo code. Now, you're all linguistic majors, pseudo means false, this sounds like code that ain't going to run, and that's not the intent of the term. When I say pseudo code, what I mean is, I'm going to write a description of the steps, but not in a particular programming language.
伪代码,基于你们都是学语言的,伪代码意味着不正确,这听起来就像是没法运行的代码,这可不是我们学这个的目的,当我说到伪代码的时候,我的意思是要对步骤进行一个描述,而不是某种特定的编程语言。
- The fact that I've called it X, is really just a programming -- it's a feature of the programming language that I, the human, can now refer to it.
事实是我叫它为X,它实际上只是一个程序-,它是程序的一个特写,我们可以参考使用它。
You have to with C, as with a lot of programming language, say what you return.
在C语言和大部分语言中,你必须说明函数的返回值。
in graduate school I used a programming language called Perl a lot.
在研究院时,我经常使用一种,叫做Perl的,编程语言。
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里面可以做什么,来操作它们了,或者在任何编程语言里。
Those nine hours are going to be primarily working on problem sets, and all the problems sets are going to involve programming in Python, which is the language we're going to be using this term Now, one of the things you're going to see is the first problem sets are pretty easy.
这九个小时会是问题,提出的基本锻炼,所有的问题提出,都将涵盖,我们这学期,将使用的Python语言的程序,现在,你们将要看见的,第一个问题的提出非常简单。
应用推荐