If you're unsure about that, check out, of course, chapter three in the textbook, where these issues are addressed.
当然,如果还不确定,可以看看课本的第三章,这些问题都提到了
And this is the same periodic table that you're going to get in your exams, so it's good to practice doing your problem-sets with that periodic table so you're not relying on having the double check right there of seeing what the electron configuration is.
这也是你们考试时会用到的相同的表,这样你们就不会,所以使用周期表来做问题集,是很好的练习,这样你们就,不会依赖于再次确认,电子构型是什么了。
On the other hand, as I said, never trust a programmer to do the right thing so we're going to check it.
另外,如我之前提到的,别相信程序员会一直保持正确,所以我们才要。
Weird things, bad things can happen and so one of the lessons too that will be repeated throughout the course is to actually rigorously error check and make sure that you're always thinking about your user being a bad guy.
各种古怪的事情就会蜂拥而至,所以在这个课程中我反复强调,要一丝不苟地检查错误,你就当你的用户是个调皮捣蛋的家伙。
Or the company says, congratulations we're repurchasing 2% of your shares and here's a check for $5 to pay you for those shares.
或者公司说,恭喜您我们要回购,您股票的2%,以每股5美元的价格,付给您的支票
We get a check for the Cheetos as well, but only because we're trained to believe that one tastes good and the other one doesn't, because in different cultures it would be the reverse.
我们还是选奇多作为食品,但选择的原因仅在于,所受的教育,告诉我们它好吃,而蟑螂不好吃,在不同的文化中情况可能是相反的
And just to look ahead a little bit, you could easily imagine that I might want to not just put a statement in there, what the specs are, I might want to put some constraints. Some specific things to check for, to make sure that you're calling the code right.
这不仅是抽象的概念还有规范的概念,我们再往前看看,你可以简单的想象得到,我不仅仅是想在这里加一个声明,这些规范说明中我还想加一些约束,我们要注意一些特殊的事情。
We approve a letter--the letter's going to say, we're making money here's your dividend check.
我们批准了,信上说,公司盈利了,这是您的股利支票
Check. So, we're making progress already.
注意,我们已经有所进展了。
So that's just a little bit of a check for yourself, and it should make sense because what you're doing is you're calculating the difference between energy levels, so you just need to flip around which you put first to end up with a positive number here, and that's a little bit of a check that you can do what yourself.
所以你们总要确保括号,离得这项是正的,这是你们自己,可以做的检查,这事很有道理的,因为你们做的是计算能量差,所以你需要调整顺序来保证一个正数,这是你们自己可以做的检查。
In either case, I take that value and multiply back by two, if it was even I get back the original number, if it was odd, I'm not going to get back the original number, so I can just check to see if they're the same.
在两种情况中,我都把结果值,再乘以2,如果x是偶数我就,得到了原来的值,如果x是奇数那么就不会得到,原来的值,因此我看看得到的值,和原来的值相等不相等就可以了。
I probably whip out a do while loop very rarely, but very often when programming games or any program that takes user input and has to check that user input and yell at the user if they're messing with you or aren't providing what's expected.
我可能很少用do,while,循环,但常常是,当编制程序游戏或需要用户输入的程序是,需要检查用户的输入并提醒用户,如果他们干扰了你,或没有提供所期望的输入。
All right, we're-- well actually, I should say that better, we first check to see, is x 0 greater than or equal to zero, if it's not, then we come down here and we print something out, otherwise we run through a little loop to get the answer, and then we check it and we spit something out.
然后我们运行一个小循环,好了,我们现在来看看,如果x≥0或者x<,我们看这儿,我们会输出一些内容,或者我们运行一个小循环来获取答案,然后我们检验一下,然后得到结果。
应用推荐