• And the nice thing is that there's a shared behavior there. Just as I can have tuples as an ordered collection of things, strings behave as an ordered collection of things.

    共享的行为,就像元组是有序的元素序列,字符串也是有序的元素序列,因此我可以对字符串做同样的操作,我可以把它们连结起来。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So strings also support things like selection, slicing, and a set of other parameters, other properties. And let's just look at that.

    如果我要到这里来的话,就得把这儿注释掉,这里是我已经建立的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Things like addition and multiplication, which we saw not only apply to numbers, but we can use them on things like strings and we're going to come back to them again.

    就像加法和乘法,我们已经学习过,它们不仅仅可以应用于数字,还可以用到字符串上,我们今天还会再讲讲。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • In which I said, you know, I didn't like the fact that things like plus are overloaded, because you can use plus to add strings, you can use plus to add numbers, you can use plus to add floats.

    那个玩笑是这样的,你们懂得,我并不喜欢,加法被重载这样的事情,但是你可以用加法,来对字符串进行合并,你可以用加法来加数字。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • We have some set of things we want to do with strings, and different set of things we want to do with numbers.

    这就对了,我们有一个可以对字符串,进行操作的方法集,还有另外一个不同的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Could be ints, could be floats, could be a combination of things, some ints, some floats, some lists, some strings, some lists of lists, whatever.

    但是我们知道数组内部的元素,可以是任何对象,可能是整数也可能是浮点数,也可能是对象的组合,一些整数。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Numbers are there to do numeric things, strings are our fundamental way of representing textual information.

    数字是用来描述数值的,字符串是表现,文本信息的基本方式。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • You're going to get a chance to explore them, and you'll see not only are there the standard numerics for strings, there are things like length or plus or other things you can do with them.

    以后你们还会学到更多,你会学到字符串,不仅仅能运用标准数值运算,你还可以对他们求长度,或者加上其他的东西。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • How do we typically print things, we convert them to strings.

    我们一般是怎么显示对象的呢?,对,把它们转换为字符串。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I'm doing a test there to say, x if the string x is less than the value of b, and x does not appear before b as strings, then I was going to do, oh, a couple of things, because they're at the same block level.

    我正在做一个测试来看看,字符串,是不是小于b的值,而且x不在b之前作为字符串出现,如果是真的话我就要做,一系列的操作,因为他们是在同一个块等级上。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定