So, if we look at what the other sub shells are called, essentially we're just converting the number to a letter.
我们来看看,另外的子壳层叫什么,本质上,我们就是把数字转换为,一个字母。
Another illustration of the difficulty of translating all values, in this case, a certain idea of virtue, into utilitarian terms.
这个例子再次说明,很难把所有的价值,此处特指某种德行,转换为功利主义形式。
This same thing happens here, there's a transduction, one kind of a signal gets converted to another kind of a signal.
这两种过程是相同的,都是一个信号转换的过程,一种信号转化为另一种信号
OK, says it says enter a float. I give it something that can be converted into a float, it says fine. I'm going to go back and run it again though. If I run it again, it says enter a float.
好了,看到他说输入一个浮点数,我输入它可以转换为浮点数的值,那没问题,我回过来再运行一遍,如果我再运行一遍。
And we can simplify this expression as saying negative e squared over 4 pi, epsilon nought r squared. Epsilon nought is a constant, it's something you might see in physics as well.
也会遇到它,在这里,你可以就把它,理解为一个转换系数,我们需要做的。
And by the exercise of entire sovereignty in protecting the public teaching of it, convert this truth of speculation " into the utility of practice."
藉由在整个统治区域,保护传授者的实践,将这对真理的思索,转换为实用与实践“
It's passing to this function called toupper, which if you've never used it it actually does what it says it makes it touppercase.
它把这个传递给toupper函数,如果你们使用过,它表示的是把小写字母,转换为大写字母。
This spring is getting squashed on either side, and it'll squash by certain amount x, that depends on your mass, and that x will be turned into a motion of a needle and that'll read your mass.
这个弹簧两边都会受到压缩,压缩量为 x,它由你的质量决定,x 会转换成指针的运动,你从而可以读数
It comes from personal experience that raises a question at least about whether all values can be translated without loss into utilitarian terms.
是亲身见闻所引起的疑问,是否所有的价值都可以完好无损地,转换为功利主义的形式。
But times have changed and they were embarrassed to give the true grounds for their objection and so they translated their arguments into utilitarian terms.
但时代不同了,她们羞于讲出反对的真实理由,就转换为功利主义形式表达反对。
How do we typically print things, we convert them to strings.
我们一般是怎么显示对象的呢?,对,把它们转换为字符串。
Well I need to take that number and I'm going to turn it into a string. So notice what I'm going to do right here. I take that number and convert it into a string. That's an example of that type conversion we did earlier on. By doing that it makes it possible for me to treat it as an ordered sequence of characters.
我可能得把这个数字变为字符串,请注意我这里是怎么做的,我把这个数字,转化为字符串了,这是我们之前学过的,类型转换的例子,这么一来我就能把它按照有序的。
We're used to thinking about sound being tranduced; being converted by acoustic waves into electrical signals that can be recognized by your iPods.
我们想想声音信号的转换过程,声音由声波转化为电子信号,你的iPod能够识别这种信号
But if we know that 65 is the int that maps to the capital letter "A," we've already seen verbally that you can convert letters to numbers and numbers to letters, and so here's the syntax with which we'll soon be doing that.
如果我们知道65是个整型数,对应的是,大写字母“A“,我们已经口头地说明,我们可以把数字转换为字符,字符转化为数字,所以这里就是我们将要学习的一种语法。
And that does two things: bug one, it helps catch bugs in your code, and secondly it often converts it into a more efficient sequence of instructions before you actually go off and run it. All right?
这有两点好处:,第一是可以帮助你发现程序中的,第二是把你的代码,在运行之前,转换为更有效率的指令的集合,对不对?
It converts things into a string type.
它把东西转换为字符串的格式。
That means starting at the first one, I'm going to do something to it. And what am I'm going to do? I'm going to take that character, convert it back into an integer, and add it into some digits. And I've done a little short hand here, which is I should have said some digits is equal to some digits plus this.
这意味着从第一个字符开始,我要对他们进行一些操作,我要去做什么呢?我要取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
A If you want to convert a number like 65 to the letter A, you just have tell the computer "cast that int to a char."
如果你要把一个像65这样的数字转换为字母,你只需要告诉计算机“把那个int型数据转换成char型处理“
应用推荐