• Thus far, for us it's been testing individual functions. Later in the term we'll talk about unit testing of classes.

    至今为止,我们用到单元测试的地方,就是测试每个单独的方法,在后面我们会讲到类的单元测试。

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

  • When I try and evaluate that expression of greater than, is going to go into the class to say greater than is a comp method.

    这个大于的操作符的时候,是到类的定义里去识别,大于是一个比较的方法,那么让我在这里说仔细一点吧。

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

  • This is the kind of thing you should be able to deduce.

    你们必须掌握推导这问题的方法

    耶鲁公开课 - 基础物理课程节选

  • We have historically developed regulations that deal with these problems.

    有关机构已经制定了,处理这问题的监管方法

    耶鲁公开课 - 金融市场课程节选

  • A newer version of this that works in a similar way but a different way is called RNA interference, and it turns out that this is a natural mechanism that cells have.

    NA干扰是这方法的新秀,它的原理与其大同小异,已经证实 这是细胞的自然机制

    耶鲁公开课 - 生物医学工程探索课程节选

  • Some of which I built: cmp, init, str. And there, notice, are the internal definitions And in fact I should've said, we often call those things fields.

    就是给我一个所有东西的列表:,所有的方法,与这个关联的,有一些是我写的:,还有这里,请注意,是一些内部的定义。

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

  • So you can actually say, how do I know which methods are associated with the class? For that, we can call dir. And what it does, is it gives me back a listing of all the things, dir all the methods, that are associated with it.

    我们开始建立了,我们得到了这些方法,因此实际上你可以说,我怎么知道,哪些方法是关联与这些类的?,为了解决这个问题,我们可以调用,这个方法的作用。

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

  • These are instances of a class, and associated with that class are a set of methods things that I can deal with.

    但是Python的基本思想是相同的,这是一些一个类的实例,这个关联了一个方法集,我可以做的一些操作。

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

  • They are instances of a class, and associated with that class is a set of methods.

    它们是同一个类的实例,与这个相关联的是一个方法集,因此例如,我可以说。

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

  • x and get the values of x and y attached to this thing and return them to me.

    和y值然后把它们返回给我,It’s,going,to,go,off,这就是我想要的东西,我想要我的里面有一些方法

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

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

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

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