That's all superhero stuff, right? What if I'm not the hero?What if I'm the bad guy?
VOA: standard.other
So if you run into a problem set that just, you don't get, all right? Seek help. Could be psychiatric help, could be a TA. I recommend the TA.
所以如果你碰到了一个,你不懂的问题,好么?求助,可以是精神科,可以是一个助教,我推荐助教。
Well, you could just try it and see if it works, right? That's what testing is all about.
你可以仅仅的去试试运行程序,然后看看结果对不对?这就是测试的内容。
All right. Okay. So, if you ever doubted that the dream of an immediate language that is somehow the correlate to jazz and experience, that's your dream living on. Okay.
好了,如果你们还有对如何通过文字或语言,和爵士乐及人生经历产生联系的疑问,这个作品就是那一巧妙结合的梦幻。
And, if that's not the case, then we redo the point scheme, all right?
如果不是那样,我们就要在重新设计一下题目?
If there's enough redundancy in the brain so that even if your right hemisphere got destroyed, your left hemisphere,you still have all the same memories,desires,beliefs.Good enough.
如果大脑拥有足够冗余,导致即便右脑被破坏掉,左脑依然拥有,所有的记忆,欲望和信仰,这就够了。
You can only drive one car at a time and if you have five cars-- well I mean that's kind of-- all right you could have five cars and you could drive a different one everyday, but it's starting to seem a little ridiculous, right?
你只能一次开一辆车,而且如果你有五辆车,我的意思是那种...,好吧,你能有五辆车,而且你可以每天开不同的车,但是这有点荒谬,不是吗
Well let's see. My fall back is, I could just do linear search, walk down the list one at a time, just comparing those things. OK. So that's sort of my base. But what if I wanted, you know, how do I want to get to that sorted list? All right?
我只能做线性搜索了,一次遍历一遍列表,一个一个比较,但如果我想要,那怎样得到有序的列表呢?,现在的一个问题是,我们排序之前?
All right,so this is something that's-- If the personality function's been destroyed, can't be recovered,can't be fixed, but the rest of the bodily functioning is still going on.
如果有这样的例子-,人格功能被破坏,无法修复,但剩下的生理功能仍在继续。
All right. That's what we can do if we accept hedonism.
好的,接受享乐主义的话就是这样。
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
If God gathers up all those small molecules, that had composed my body, reassembles them in the right order and put these calci molecules next to that hydrogen molecules, so forth and so on, reassembles them in a right way.
如果上帝重组了所有构成我肉体的,微粒分子,将它们以正确的次序重组,把大量的钙生分子和,氢分子放在一起,组合起来,将它们以对的次序重组。
All right. If that sounds like a really long preamble, it is. Let's start with Python.
好,如果上面听起来像一个很长的序文,他确实是,让我们从Python开始。
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
All right. If you flip to the second side of your handout, you'll see that I have a piece of code there, that does this-- let me, ah, I didn't want to do that, let me back up slightly- this is the algorithm called search.
你可以看到实现这个功能的代码,让我,额,我不想这么做,让我们回来一点,这就是命名为search的算法-,我们来看看这个算法吧。
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐