• Now in this case, it's clear that I'm not only saying this function takes an input, I also have to give that input a name.

    在这种情况,很清楚的,我不只是说明这个函数有一个输入,我还要给那个输入一个名字。

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

  • You have to pass it as input to another function, as you'll see as possible in problem's Set One specification, but it's ultimately up to you.

    你需要把它传给另一个函数当入参,就像你们将,在习题集1中可能看到的,但它最终取决于你。

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

  • As I said, what we want to do is, we want to count the number of basic steps it takes to compute a computation as a function of input size.

    我刚才提到了,我们要建立,一个根据输入大小的方法来计算,一个计算过程需要的时间,建立这个方法需要几步呢?

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

  • It then should take an argument or parameter if you want your function to take input.

    然后它必须携带一个参数或参量,如果你想要你的函数获得一个输入。

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

  • It's just an input to a function, the thing inside parentheses.

    圆括号里面的东西,只是一个函数的输入。

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

  • An argument or a parameter is an input to a function.

    参数或参量是一个函数的输入。

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

  • And yet notice that the function itself, it takes no input.

    请注意函数本身,它没有输入。

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

  • The answer is I can't. OK, in the simple case of integers I can, but in the case of something more complex like faces or fingerprints or passwords for that matter, it's hard to design a hash function that has completely even distribution, meaning that it takes any input into exactly one output spot.

    答案是我不能,好吧,在简单的整数的例子中,我可以做到,但是在一些更复杂的场景中,比如面部,指纹,密码相关的问题中,很难设计一个哈希函数具备完全平均的分配,也就是说,做到对任一输入,可以准确地得到相应的唯一输出,因此在一个哈希问题中。

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

  • That in many cases, I can gain efficiency if I'm willing to give up space. Having said that though, there may still be a problem, or there ought to be a problem that may be bugging you slightly, which is how do I guarantee that my hash function takes any input into exactly one spot in the storage space?

    普遍存在的增益和权衡,在许多的例子中,可以通过牺牲空间而得到效率方面的增加,话说回来,仍然存在一个问题,或者应该会有一个问题困扰着你,就是我如何保证我的哈希函数能够准确将,任一输入映射到相应的唯一的存贮空间中去?

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

  • So before we use printf, a function, and we passed in one input and input henceforth we're gonna call arguments or parameters.

    我们在使用printf函数时,先放进去一个输入,之后的输入我们就要,调用参数了。

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

  • I'm doing a little trick by the way, I'm using raw input in my function here as a just a way to stop the display.

    顺便说下在这儿我有个小恶作剧,在这个函数中,我使用了raw,input方法。

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

  • X So here I'm declaring another variable called X, and this is totally legitimate because I already know that if I'm implementing a function like swap or increment, I can absolutely take input.

    这里我声明另一个变量,这个完全是合法的因为我已经知道,如果我执行一个像swap,或,increment的函数,我完全可以携带输入。

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

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

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

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