Let's take a quick glimpse of what it's like to write a real program albeit a very trivial one.
下面是一个真正的程序,尽管它很简单。
The "I've already" pattern is a very simple way to explain
I've already”句型是一种非常简单的句型,它可以用来解释
But don't worry about it, it's not, I'm just using it because it's a simpler example than the one I really want to get to, which is knapsack.
但是别担心,我讲这些是因为它比我,真正想讲的问题简单一些,我想讲的是背包问题。
It's the most simple-- or often called a bill-- a discount bond does not pay interest; it's sold at a discount.
它是最简单的,经常被称为国库券,它是一种贴现债券,且不付息,并以折扣价发行
So if you think of a shell, you can actually just think of an egg shell, that's probably the easiest way to think of it, where the yolk, if you really maybe make it a lot smaller might be the nucleus.
可以把它想成,个蛋壳,这也许是,最简单的思考办法,蛋黄如果,缩小非常多倍的话,就可以想象成核子。
It's been encrypted pretty naively, pretty simplistically, but it's actually an English sentence that's been somehow scrambled; but scrambled in a reversible way.
它被天真地,相当简单地加密了,但是它实际上是一个被加密的英语句子,但是加密方式是可逆的。
Different Jews have different opinions about how that works and the past few centuries have been an interesting experiment with modernity and how Jew is gonna face that and react to it So that's sort of just a brief introduction to Orthodox Judaism.
不同的犹太人有着不同的看法,那是如何实现的,而且过去的几百年,就是对现代性一个很有趣的实验,也是对犹太人将如何,面对并且回应它,这只称得上是,对犹太教正统派的简单介绍。
But refining in just the right way is going to turn out to be a surprisingly not straightforward matter, at least that's how it seems to me.
但是让人惊讶的是,要正确地修改它,并不是那么直接而简单的,至少在我看来不是。
Right now it's a simple template, but it's a template for creating what a class looks like, and I now have an x- and y- value associated with each instance of this.
那么大家明白了为什么,我说类是一个模板了,对不对?,现在它只是一个简单的模板,但是它是一个用来-,创建形成一个类的模板。
It's going to be my sort of simple implementation of a progress bar.
它将是一种我的,简单的执行进度条。
The other reason we teach it here, in addition to it being simple, is that it's incredibly useful.
这种思想的原因之一,另一个原因,是除了简单它还十分有用。
For those of you don't know what that is it's simply an instrument that counts radioactive particles in the air, and MIT now that you're at MIT, you'll all have a chance to see one first hand if you're ever in any of the labs, especially in the chemistry or bio labs.
不知道它是什么,它就是一个简单的,计算在空气中放射粒子数目的仪器,你们现在来了,如果你们在实验室里工作的话,尤其是化学和生物实验室,你们有很多机会亲手用到它。
Here, too, gets a little ugly and this is why I tend not to like this construct, at least in C, but sometimes it's necessary or it's the simplest way to achieve this goal.
这里也有点难看的,这也是为什么我,不太喜欢这个结构,至少在C语言中,但是有时它是必须的,或者它是达到目标最简单的方法。
And we can also write this in an even simpler form, which is what's called electron configuration, and this is just a shorthand notation for these electron wave functions.
而且我们也可以将它,写为一个更简单的形式,它叫做电子构型,这个仅仅是这些电子波函数的。
Right now it's got that second key word there called pass, which is just Python's way of saying there's an empty body in here.
现在我在完善它的一个简单部分,但是首先,类是用来干什么的呢?,把类认为是可以创建一个。
I think one of the classic ones for strings is called the Rabin-Karp algorithm. And it's simply the same idea that you have a mapping from your import into a set of integers.
我认为字符串哈希,最经典的是Rabin-Karp算法,它只是简单的相同概念,你有一个映射关系将你的输入映射成一组数字。
应用推荐