You think, some other day, I don't want to talk today about the probability of one of us dying.
你会想,还是改天再说吧,我今天不想讨论家人会有多少可能性会去世
and you sort of just decide if you want to go into litigation, which is the trial and court practice
你只要决定你想不想参与诉讼,就是审判和法庭程序,
If you would like to flag them as private, because you just don't want your classmates to see what you're asking, you can certainly do that.
如果你想要把它们标志为私有的,不想让你的同学们,看到你问的问题,你当然也可以这样做。
I stress it in particular because I know you're all going to get into this stage; you've got a problem set due in a couple of hours, you're still writing the code, you don't want to waste time, and I'm going to use quotes on "waste time", doing those extra things to do the defensive programming, you just want to get the darn thing done.
我特别强调了这一点,因为我知道你们都会慢慢成为程序员;,你在写代码过程中造成了一系列的错误,你还在写代码,你不想浪费时间,我想把“浪费时间“用引号圈起来,浪费时间来做因为防卫性程序设计,而带来的这些额外的事情,你只想赶紧把程序写完,这不是一个好习惯,因为当你做完回头。
After the movie, maybe you could ask your friend if he wants to go to dinner.
看完电影后,也许你可以问问你的朋友想不想去吃饭。
That didn't happen to me -- once I got into the lab, I didn't want to leave. So, I thought, "You know what, I think I'll change the medical school plans and now I'm going to go all the way -- chemistry major, chemistry grad school."
这很好,但我不是这样,我一进入到实验室就不想离开了,所以我想“你知道吗,我想把我学习医学的计划改成化学-,我要学化学专业,读化学研究生“
You don't want--you know that you'd like to take money away from yourself in the high-outcome years and give it to yourself in the low-income years.
你不想...你知道,你想在高收入的年份中,拿出一点钱,给你自己低收入的年份
And you're wondering if your friend wants to go to this party because her ex-boyfriend is there.
但你不清楚你的朋友想不想去,因为她的前男友会在这个派对上出现。
But you don't want unnecessarily come out and say, "I really like to do this."
你可能不想冒冒然地说“我真想这么做”。
So if you would want to do this condition or this one, you don't want to break those conditions up because you want to let those people in or that family in either way if either of those conditions is true so you can or them together.
所以你想要处理这个条件或这一个,你不想打破这些条件因为你想,让这些人进来或者那个家庭进来,不过怎么样,如果其中任何一个,条件成立,你可以进来或跟他们一起进来。
So a loop or an infinite loop, because true is always true, there is no-- nothing on the screen that seems to change this keyword true, so this is actually a deliberate infinite loop, but so was that thing up top to forever say hi or whatever it is you wanted to do.
因此而出现死循环,屏幕上的这些语句无论怎么运行,都无法改变它为真的事实,这就是所谓的死循环,无论你想不想要,屏幕上都会不断打印出“hi“
you say, "Okay, there's this party but let me know what you think."
你说,“好的,今晚有个派对。你想不想去?”
OK, so how can I code this up? Well, you might think, let's just jump in and write some code, I don't want to quite do that though, because I want to show you another tool that's valuable for thinking about how to structure the code, and that is a something called a flow chart. Now.
好,那么我怎么把这个以代码实现呢,你可能会想,让我们进去直接写代码把,但是我不想这么做,因为我想教给大家另外一项很有价值的,用来组织代码的工具,叫做流程图,现在,像Guttag教授,和我这么大岁数的人。
Let me know what you think.
你想不想去?
应用推荐