• So the first thing we'll do is, we'll print the element, in this case it will be a list right? Because it's a list with two lists in it.

    因此这儿我们要做的第一件事,就是要显示元素,在这儿元素就是数组了对不对?,因为这个数组包含了两个数组。

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

  • Let's check it out. I've written a little bit of a test script here, so if we test cell sort, and I've written this so that it's going to print out what the list is at the end of each round, OK.

    我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,它能够打印出每一轮结束后,链表的是什么样子的。

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

  • I'm going to print here the list if we go into it, and print of the when we're done and then just return that.

    注意接下我来我要做的事,运行到这里时会打印列表,并且当处理完成后会打印返回的列表。

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

  • Then the next thing in the loop, we're going to enter a nested loop and say for every college in the list e, we're going to print the name of the college.

    循环中的第二件事,是进入一个嵌套循环,这个嵌套循环将数组中的,大学名字显示出来。

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

  • So I can concatenate techs plus ivys and assign that result to univs, and then when I print it you'll notice I just get a list of five strings.

    和ivys数组用加号串联运算,并把结果赋值给univs数组,接下来我显示下univs的结果,你注意到我得到了一个。

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

  • 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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