限制暴露部分所允许的输入类型。
然后鉴于输入类型返回结果输出。
为Order映射开发输入类型树。
So it's a way of reminding you, I've got to be careful about the types of things that I put in.
因此我这是在提醒你,一定要对输入的东西的类型,多加注意。
We saw, associated with that primitive data, we have ways of taking data in and creating new kinds of data out, or new versions of data out, so we have operations.
我们可以取得输入的数据然后,创建新的类型的输出数据,或者新的版本的输出数据,这就是我们说的操作。
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.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
应用推荐