S We saw percent S which is a placeholder for a string, turns out as you'll see over time there are other placeholders.
我们知道字符串占位符,输出来就是另一番场景了,还有一些其他类型的占位符。
But then you've also got the other parts,
但是贵族也有其他类型的,
There are so many other constructs like loops and conditions and such, so what I thought we do in conclusion today is look at this program.
这里有很多其他结构类型如循环控制,条件分支等等,所以我觉得应该,以这个程序作为结束。
So you can imagine it's just going to get more and more complicated as we get to other types of atoms, and of course, molecules from there.
所以你们可以想到,当我们处理其他类型的原子,以及分子的时候,它会变得越来越复杂。
And there's some others that we can see.
后面我们还会看一些其他的类型。
If you want to output an integer or other types as we'll see.
如果你想输出一个整数,我们将学习到的其他类型。
So, let's think about kind of differentiating, however, between first ionization energy or just ionization energy, and other types such as second or third ionization energy, and let's take boron as an example here.
那么,让我们来区分一下第一电离能,也就是电离能与其他类型的电离能,比如第二,第三电离能,我们以硼为例。
Basic idea, before I even look at the code, is pretty simple. If I've got a list that is sorted, in let's call it, just in increasing order, and I haven't said what's in the list, could be numbers, could be other things, for now, we're going to just assume they're integers.
我们可以说基本的思想是很简单的,如果我有一个排好序的数组,让我们认为这个数组是递增的吧,我并没说数组里元素是什么,可能是数字,也可能是其他的东西,现在我们假设是integer类型的数字吧,最简单的方式就是这么做了:
Can't use them on Booleans, they have a different set of things. They do things like AND, and OR. And of course there's a bunch of other ones in there, I'm not going to put them all up, but we're building up a little collection, if you like, of those operations.
这个方面的东西,它们不能被应用于布尔类型,布尔类型有其他的一系列操作,比如AND,和OR之类的,当然还有很多其他的,我不会把他们一一列出来,但是我们会学习这些操作的一部分。
I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.
我得到一个整数并把它存储,到n中,switch语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。
应用推荐