And then of course, once we figure out why not, we try and fix it. but today I'm going to emphasize not how do you fix it, but how do you find out what's wrong.
我们就会去尝试着修复程序,但是今天我强调的,并不是怎么去修复,而是怎么找出来错误原因。
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
Some people in this room might be hubs, and it is not impossible to find out.
这个教室里可能就人这样的人,要找出来很简单。
It's me who's watching out for this one, not the court, okay?
这是我自己有意找出来的,不是法庭,知道吧?
You measure your temperature is a little up, you've got a fever, something's wrong, I better find out what that is' because temperature is a very highly controlled variable.
你测出体温偏高是,你就发烧了,身体哪里出问题了,我最好把问题找出来,因为体温是一个严格控制的身体指标
It takes a while so--but I think we've got it identified.
这需要多花一点时间来找,但我想我们已经辨别出来了。
So validation says whoops, it's not working.
现在我们就得找出来原因了。
Found where the statement is, and then fixed it.
找出来那一行代码。
应用推荐