She says Iceland and Thailand are exceptions.
VOA: special.2010.04.01
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
There's a few exceptions, but most things you can really grind on and certainly that was kind of the history of Microsoft in the early days.
有一些例外,但是大多数都是耗时长久,早期微软也是如此。
So, that's actually the electron configuration we have when we're talking about copper and some other exceptions in the periodic table that you're going to be looking at.
因此,这才是铜原子真正的电子排布,而且我们在元素周期表中,会看到与铜原子类似的,其他例外的情况。
Wednesday I'm going to talk about exceptions to absolutism, what the Dutch and what the English had in common that gave them very different political outcomes.
下节课我们将会谈到绝对主义的一些特例,荷兰和英国有何共同之处,以及它们产生的迥异的政治结果
The exceptions are lucid dreams where you choose what to dream about, and then possibly you could be immoral if you encourage bad habits of thought.
除了有意识的梦,在这种梦境里,你可以控制梦的内容,你可能会作恶,如果你纵容自己有这种作恶的思想的话。
And this is an exception, but there were quite a few of those exceptions.
有例外,但也只有很少例外。
So I'm going to distinguish in fact between un-handled exceptions, which are the things that we saw there, and handled exceptions. I'm going to show you in a second how to handle them, but let's look at an example.
所以我打算区分开不可处理的异常,以及我们刚才看到的,可以处理的异常,我一会要给你们演示下如何处理他们,给你们看一个例子。
Now, there are exceptions in both directions, and as it happens the cases I know best have to do with the city of Corinth sent out a lot of colonies, which is why we know something about their arrangements.
但是现在两方面都有特例存在,而且这特例就发生在我最为熟知的科林斯,科林斯建立了很多殖民地,因此我们现在能对它的安排有所了解
But we'll go over that, particularly some exceptions, when we're filling in electron configurations, and how we would go about doing that for positive ions, which follow a little bit of a different procedure.
但是我们将会重温它们,特别是一个特例,当我们填充一个电子构型,而且我们会如何着手,处理阳离子,它遵从一些别的不同的过程。
So, summarizing better, assert is something you put in to say to the user, make sure you're giving me input of this type, but I'm going to guarantee you the rest of the code works correctly. Exceptions and exception handlers are saying, here are the odd cases that I might see and here's what I'd like to do in those cases in order to try and be able to deal with them.
所以更好的总结下,断言就是你放在那里告诉用户,保证你输入的是这种类型的,但我能保证剩下的代码运行正确,异常和异常处理做的事,这里有些我能预期的异常情况,并且这里有些情况,我能尝试处理。
The question when we see exceptions, whether it's the Lykken and Tellegen study, not all twins were the same, the question is no longer whether or not change is possible, but rather how is change possible.
当我们看到了例外,无论是在Lykken和Tellegen的研究,当发现不是所有的双胞胎都一样,已不再是,改变是否有可能,而是怎样实现这种改变。
Now we can think about the fourth period, and the fourth period is where we start to run into some exceptions, so this is where things get a teeny bit more complicated, but you just need to remember the exceptions and then you should be OK, no matter what you're asked to write.
现在我们可以考虑第四周期,而且在第四周期,我们会遇上一些特例,所以事情有,一点复杂,但是你只需要记住,这些特例然后就没有问题了,无论你被要求写什么。
应用推荐