But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
You are not going to get it out of me this time, like you always do.
这回你没法从我嘴里捞到半点消息,就像你自己经常严守秘密那样。
And what's this little loop say to do? This little loop says I'm going to write a function or procedures that takes in two messages.
这个小循环是做什么的,这个小的循环是,我要写一个函数或者过程来接受两条消息。
And, I think you hear about this in the news a lot.
我认为你听到关于这方面的消息很多。
The first item always on that was the overnight casualty report from Iraq and Afghanistan, and I would often come and see that had been circled by the president or that he would be reflecting on that.
上面的第一条永远是,这一晚在伊拉克和阿富汗,士兵的伤亡报告,我来的时候会看到那条消息,被布什总统圈了出来,他看着报告会陷入沉思。
But how many of you have ever called Facebook up or called Amazon up and kind of whispered into their ear I'm going to encrypt this with the number 13.
但是有谁听过Facebook或者亚马逊,稍微低声地告诉他们,我将用密钥13加密这个消息?
He also did it from the El Camino Community College Library because he thought, I'll be careful, I won't issue this fake press release on my own computer because they might be able to track me back to my own computer.
而且他使用,埃尔卡米诺学院图书馆的电脑进行发布,因为他想,我要小心为妙,不能用自己的电脑散布这条消息,监管机构很可能会追踪到我的电脑上
But I got so upset when I heard the news.
但是当我听到这个消息时,我很泄气。
That's the latest I've heard from them.
这是我听到的最新消息。
I have a news. She's leaving.
我告诉你个消息,她要走了。
I'm expecting a message from Tom.
我在等Tom的消息。
Now again, don't get carried away, I almost didn't talk about this whole message-passing paradigm, but it's so pervasive in the world I felt you needed to hear about it.
现在我基本上没有讲过这种消息传递的实例,但是你们需要了解它所以我觉得你得好好听,但是他不是什么很深奥的概念,如果你不想考虑消息的概念。
Now what I'm going to try and do is read in a set of values, but I'm going to give a type of value as well as the messages.
现在我要做的是输入一些值,并关注异常,我会输入消息以及一种其他的值。
Well, I have some good news.
好的,我这儿有些好的消息。
I got so upset when I heard the news.
但当我听到这个消息时,我很泄气。
应用推荐