Suppose I want to do little piece of code that's going to do planar geometry, points in the plane.
好,因此我需要一些,把这些东西收集到,一起的一些方式。
He's seen me work on long assignments, short assignments, very analytic assignments, very not so analytic assignments.
他见过我处理一些长期任务,短期任务,一些需要大量分析的任务,还有一些不怎么需要分析的任务。
The instruction I always give at Buddhist student group meetings whenever somebody comes in and needs instruction, they're pretty simple.
在佛教学生社团聚会时,每当有人前来,需要指点时,我都会给一些建议,都很简单。
Once you know what pieces to look for, what mental constructs to reach for, can you realize all right I want to make some dancing figures go back and forth, I need to loop this way and loop this way and check if I'm on the edge and so forth.
一旦确定需要查找的部分,想要达到那种层次,你是否意识到,我想做出一些可以来回走动跳舞的人,我需要按这种方式那种方式让它转圈,并检查我是否,到了屏幕的边缘等等。
I'd like to give them a name, so I can refer to them in other places.
我需要给他们一个名字,这样我就能在其他一些地方引用这些值了。
So I would choose something that have a wave lines off You wouldn't measure the dimension of a human hair with a yardstick, so I need something on this order.
所以我会选些东西,你将不会用一个码尺去量,人的头发有多大,所以我需要一些这个级数上的东西。
Well, because it takes some time for these cellular events that I mentioned earlier to happen.
因为我之前提及的细胞活动,需要一些时间完成
So we've got the firms, they're the players, I know what their strategies are, I know a little bit about the structure of the market, and I still need to tell you what payoffs are.
我们有了公司,作为参与人,我知道它们的策略是什么,对市场的结构也有一些了解,我还需要告诉你们收益是什么
I think the paper work involved,
我想需要看一些论文、报告,
The biggest thing for me on that path is I needed to draw something out and I needed to get it out of my head.
在我看来,这条路上最重要的莫过于,是需要描绘出一些东西,再把它们忘却。
So, I would like to ask for some volunteer hoplites.
所以,我需要一些志愿者来扮演重装步兵
I'm going to start with those and then I'll turn, eventually, to another set of possible things that might need explaining, which we might think of as extraordinary, supernatural things.
我将从这里开始,然后转而讨论,另一些,需要给予解释的现象,那些我们可能视之为异乎寻常的,超自然现象
I think that part is fine, but behind that you need something to replace what was there When you have peace then you need to bring in stablity that means economic stability as well as security stability You need the police. You need the government. You need the economy.
我认为计划本身是好的,但还需要一些东西来填充以为以前的空缺,和平了,你就需要稳定,经济稳定,安全局势的稳定等,我们需要警察,需要政府,经济也要发展。
The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
Partly to show you that it's kind of weird, but also to tell you that one of the things you want to do is exercise what I'm going to call some type discipline.
一定程度上来说这有点儿怪,但是还是想要告诉你们的是,你们需要做一些,我称之为类型规范的练习。
- But there's one potential gotcha here -- and this is where you have to be kind -- of piecing together the little clues along the way -- what have I done that's interesting here that had I not, I would have had a mathematical error?
但是这里有一个可能性-,这就是你需要把,一些线索拼凑在一起-,我这里所做的是很有趣的,如果我不这样做,我可能已经犯了个数学错误?
For this I need to invoke a couple of bits of science.
为此,我需要引入一些其它科学知道。
Having already chosen to use equal as an assignment, I need something else to do comparison.
既然等号是,用来赋值的,我需要用一些东西来做比较。
But no one dared say we have this little planetary model, I've got an electron orbiting a central nucleus and I am going to endow that electron with quantized states That was a big leap and that was Bohr in postulate five Postulate five I am just going to reproduce.
但是没有人敢说,我们拥有了这个小行星模型,知道了电子绕原子核运行,现在就要让它使电子处于量化的状态,假设五中波尔的成就是一个跳跃式的进步,假设五中我只需要重申一些东西。
And the main one is, I get to just decide, how do I want to use this, and call it.
但是这真的会有一些好处,最重要的一点是,我需要决定,我要如何来使用这个方法,以及如何来调用它。
Here I actually need to tell the computer, "Give me some bytes in ram in which to store a value, and that value's going to be a floating point value."
这里我的确需要告诉计算机,“给我一些字节内存,来存储一个值,那个值将是,浮点型的数值“
I think that theological positions need to change and we know that can, look at how they've changed in Christianity regarding women, not perfect, but, regarding women, the end of human chattel slavery.
我认为一些相关的神学观点需要变革,这是完全有可能的,看看基督教对于妇女的观点的变革吧,虽然不算完美,但的确有所改变,还有奴隶制的废除。
I've got some internal variables I have to store, what kinds of things do I have to keep track of?
计算的时候需要占用多少内存,我需要存储一些内部变量,我需要记录哪些东西呢?
I went from this description, it gives me some information. I need to have a particular type.
我从这些描述出发,它给了我一些信息,我需要一些特定类型的数据。
But I got a couple of other of these strange looking things in there with underbars to them.
我可以在这片代码中看到这些,然后我需要一些可以给我,返回这些信息的东西,但是这里还有一些看起来。
Second thing to notice, is that little piece of pseudo code is telling me things about values.
然后需要注意的是,这些伪代码告诉了一些关于值方面的事情,我需要一个浮点数。
I'm going to run through a loop, and I'm going to request some input, which I'm going to read in with raw input.
我要运行一个循环,我需要一些输入,需要读入一些原始的输入。
That means it was something I didn't understand. So I'm going to be cautious and systematic.
这就意味着代码中有一些,我没有理解的东西,因此我需要谨慎,并且系统化的去寻找这个错误。
All right, if this is purely a test of, if this is true do this otherwise I don't care, I don't need the ELSE clause in there to identify it. All right?
好,如果这真是一个测验,用来测试如果是真的那么进行一些操作,否则的话我不在乎,那么我不需要ELSE语句,来进行声明了对不对?
应用推荐