All right, those pieces of code inherently involved something that does depend on the size of the input, or on the particular input.
好,这些代码,肯定会涉及到一些,与输入的大小相关的东西,或者说与特定输入相关。
These things run for variable amounts of time because they take input, a list of size of some amount.
而这一段的执行时间是可变的,因为它们需要输入一个包含一些元素的列表。
It could be, preconditions I want to have on input It could be, explanations of specific things you're doing.
也可以是我对输入的预期是什么,也可以是,对代码,正在进行的特定操作的解释。
Maybe that's just an illusion created by the fact that I'm getting this visual input from my body .
也许那种想法就是一个错觉,因为通过视觉我知道,肉体有位置,随之假设灵魂也有位置
So, this is what goes on in an electrolysis cell, and it works thanks to input energy from a power supply shown here.
所以,这是在一个电化学电池中发生的,它是靠输入的能量工作的,从和这个类似的电源输出的能量。
Touch, voice, natural language input, Smart Phones, Smart PC's, Smart TV's.
触屏,声音,自然语言的输入,智能手机,智能个人电脑,智能电视。
There're 2 individuals who're going to supply an input to a joint project.
有两个实体共同完成一个协作项目
So, it makes a binary decision, either I create an action potential or I don't, but that decision could be based on many inputs, not just on input from one cell.
所以 这里产生一个二选一的决策,就是产生动作电位亦或不产生,不过这个决定可能是,根据很多输入信号做出的,而不是仅凭单个细胞所传来的信号
It was a complete waste of time, unless the goal in life was simply to pester the user for some input.
刚才的时间就完全浪费了,除非那个唯一的目的,是简单地纠缠用户索要一些输入。
One of the things you could imagine is just try it on and input, see how long it takes.
你们想出来的方法只是可能就是通过,输入来试试,看运行时间会有多长。
I could generalize this pretty nicely. Imagine the same kind of idea where I want to simply say I want to take input of anything and try and see how to make sure I get the right kind of thing. I want to make it polymorphic.
对吧,我试着输入浮点数,我能更好的一般化它,想象下类似的想法,我需要输入些什么,然后看看输入的是否正确,我想使他更多元化些。
In the example I just wrote here, this is pretty trivial, right. OK, I'm trying to input floats.
在我写的这个例子中,这是很微不足道的。
The second thing is, what do I print out if I actually don't get the right input in?
第二件事是我没得到,正确类型的输入时输出什么?
I'm much better having an exception get handled at the time of input than to let that prop -- that value rather propagate through a whole bunch of code until eventually it hits an error 17 calls later, and you have no clue where it came from.
不是我期望的格式,这时我最好有一个异常处理,而不是让其传下去,这个值传到代码的整个分支,最终会导致一个错误17调用的发生,并且你不知道这个错误是哪里来的。
You have to jump through hoops just to ask the user for a piece of input which should be really the thing a language prioritizes.
你要百依百顺才能从用户那里得到一个输入,这个输入可能只是一个,语言优先级。
I'm going to have it take in as input how many legs I got, how many heads do I have, and I just want to write a little loop.
这就是解决问题的思路,我将要输入我有多少条腿,以及我有多少只头。
So the body breaks and no longer is able to give input up to the soul.
由于肉体死亡了,它将不再给灵魂输入指令
So you try and find a smaller input that bug will produce the problem.
你应该尝试着用规模小一点的输入,去重现这个。
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
And yet notice that the function itself, it takes no input.
请注意函数本身,它没有输入。
An argument or a parameter is an input to a function.
参数或参量是一个函数的输入。
First of all, that depends on which input I've picked. All right?
首先,这方法的结果跟我选中的,输入有关对不对?
And given those types of input, will get back output.
然后鉴于输入类型返回结果输出。
On input of two elements, is less than 2?
输入是2个元素,小于2吗?
And often there's human input.
人们得输入一些东西。
It doesn't depend on the input.
和输入无关。
This is exactly where I don't really know the details, but I take it it's something like: because of whatever the original input was, eventually the blood's no longer circulating and oxygen isn't making its way around the body.
事实上我对这方面不是很了解,我只能认为是,不论最初的死亡原因是什么,最后血液不再流动,氧气不能输送到全身
应用推荐