And if you pay attention to the smallest things while knowing what's important, then everything else takes care of itself.
如果你注意到了最小的东西,并且知道什么是重要的,那么任何其他事情都会自然而然地好起来。
This is something I'd like you to practice, I'd like you to think about, be conscious of, and it's something we can return to.
这是我想让你们练习,并且希望你们多想想,并且小心注意的,这也是我们能够重现的。
Notice that these transport costs go up in the distance you have to travel and they go up pretty fast.
注意这些交通成本,随着距离而增长并且增长得很快
But you see the difference. Great question, and a very important thing to understand, and that's why I'm belaboring this point, since this is where people tend to get pretty confused, and this is why mutation is very important to understand. Yeah.
但是你们已经发现区别了,这问题挺好的,并且有重要的一点需要我们去注意的是,人们经常对可变性这一点感到很迷惑,但是可变性是很重要的,我们需要理解它,这也是我经常强调这一点的原因。
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的,如果不是的话,请注意会发生什么,下面的代码都不会被执行,程序会到这里来然后显示一些有用的信息,信息会说,嘿,你给了我一个负数,我不知道该怎么弄这个了。
应用推荐