And so what you want to do and again we'll come back to this later in the term, is something called regression testing.
却又出问题了,然后你想怎么办呢?,我们会在这学期晚些时候,讨论这个被称为回归测试的东西。
What do you do when you're stuck with a question while studying Physics?
当你在学习物理时被一个问题难倒了怎么办?
All right. What do you do when you've found the bug and you need to fix it?
好了,当你发现错误并修改它们的时候,你该怎么做?记住一个古老的法则?
The question becomes how did you address these issues How do you know about them.
这样一来问题就变成了你怎么处理这些问题,以及你对它们了解多少。
You can take these big risks of time, and if at the end of the day there's nothing to detect, you still know how to build a detector.
如果最后你什么都没测到,你至少知道了,怎么造一个探测器,所以如果你们。
You have got this new law, but how are you going to sell this?
你知道了这个新定律,你会怎么推广它呢
Now we can ask, not what did you do, but what should you do?
我们不讨论你做了些什么,而讨论你应该怎么做
How we do that will be clear in a few minutes, but this polylinker as is described down here is a site where you can clone in genes.
马上你们就清楚这该怎么做了,这里所说的多克隆位点,就是你能把基因片段插进来的位点
And for Problem Set 0, too, those of you might think Scratch kind of imploding since I was 6, well then we'll hand you some of these little logic boards which are a variety of real world sensors you can connect to your Mac or PC and push yourself a little further with interactions, with the real world.
对于习题集0也是如此,有些人可能认为从我6岁开始就不怎么用Scaratch了,那么我给你一些小的逻辑板,它们就是各种各样的真实世界的感应器,你可以用它们来连接到你的手机或电脑上去,和现实世界做进一步的互动。
So, it kind of depends like what you go for obviously
所以,显然就看你怎么选择了。
He appeals primarily to God's vanity: What will the neighbors think if you destroy them?
他主要唤醒了上帝的虚荣:,如果你毁了他们,你的邻居会怎么想?
If you pay them, they'll like you less.
如果你付了报酬,他们就会不怎么喜欢你了。
So what would you do in this case?
那换了是你在这种情况下会怎么做?
It's just not the color for you. It's too dark.
这个颜色不怎么适合你。看起来太深了。
Sure. Is there any problem with your car?
当然可以,你的车怎么了?
It depends on how you deal with it.
就看你怎么处理了。
If you're a doctor and you've got a patient who's running away from you at the speed of light, you'll know what to do.
如果你是个医生,你的一个病人以光速逃跑了,你就知道该怎么办了
So you can actually say, how do I know which methods are associated with the class? For that, we can call dir. And what it does, is it gives me back a listing of all the things, dir all the methods, that are associated with it.
我们开始建立类了,我们得到了这些方法,因此实际上你可以说,我怎么知道,哪些方法是关联与这些类的?,为了解决这个问题,我们可以调用,这个方法的作用。
We don't know the time and we don't know how high it's rising so you can ask, "How am I supposed to deal with this problem?"
我们既不知道时间,又不知道最高点的高度,那你就会问了,这道题该怎么做呢
You can say, "How am I going to check that?
你就会问了,"我怎么才能确认这一点呢
It says you gave me something I didn't know how to deal.
它的意思是你给了编译器一个,他不知道怎么处理的东西。
But notice what this does. The first thing it does is, it says, let's check and make sure x is greater than or equal to 0. If it isn't, notice what's going to happen. None of that block is going to get executed, and it's going to come down here and print out a useful piece of information, which says, hey, you gave me a negative number. I don't know how to do this.
做的是和以前一样的事情,但是注释它做了什么,第一件做的事情就是,程序说,要去检查并且确信x是大于等于0的,如果不是的话,请注意会发生什么,下面的代码都不会被执行,程序会到这里来然后显示一些有用的信息,信息会说,嘿,你给了我一个负数,我不知道该怎么弄这个了。
Once you got this, you realize what you got to do.
一旦写出了这两个式子,你就知道该怎么计算了
应用推荐