• And we're going to start with one that you many of you, have already bumped into perhaps by accident, which are lists.

    曾经遇到过的,可能是偶然遇到的类型来开始,就是数组数组字符串类型。

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

  • And in that case, in general lists, I need to figure out what's the access time.

    一些浮点数,一些字符串,一些数组内部的数组,各种各样。

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

  • You can treat a string as though it's an array because it really is.

    你可以把一个字符串当做一个数组处理,因为它的确是一个数组

    哈佛公开课 - 计算机科学课程节选

  • But once we get the strings today, in arrays then absolutely.

    但是一但我们获得了那个字符串,在数组里面。

    哈佛公开课 - 计算机科学课程节选

  • So plus and append do very different things.

    包含5个字符串数组

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

  • So for now, a string is really just an array.

    到现在,一个字符串实际上只是一个数组

    哈佛公开课 - 计算机科学课程节选

  • It's being handed an array of strings.

    它传递一个字符串数组

    哈佛公开课 - 计算机科学课程节选

  • Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.

    好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组

    哈佛公开课 - 计算机科学课程节选

  • Lists differ from strings in two ways; one way is that it's mutable, the other way is that the values need not be characters. They can be numbers, they can be characters, they can be strings they can even be other lists.

    有两个不同之处,一个在于数组是可变的;,另一点在于数组里面的值,不一定是字符,可以是数,可以是字符,也可以是字符串,甚至可以是其他的数组

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

  • b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?

    好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?

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

  • We can put a list in the list again, as we've seen before. So let's put the list containing the string a, and I'll print out so now we see something pretty interesting about a list, that we can mix up all sorts of things in it, and that's OK.

    数组放到数组中去,让我们把这个包含,字符串a的数组放进去,然后再显示,我们看到了一些,挺有趣的事情:我们可以把各种,各类的东西混合着放进去,没问题。

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

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

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

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