If I do this, try and get the 10th element of a list that's only eight long. I get what looks like an error, but it's actually throwing an exception.
如果我来这么做,试着去取长度为8的列表的第十个元素,我貌似能得到一个错误。
Number one, the basic structure is that you have a pointer and it points over to a pointee, but the pointer and pointee are separate and the common error is to set up a pointer but to forget to give it a pointee.
第一,基本结构是,你有一个,指向数据的指针,但是那个指针和数据,是分开的,通常错误是声明了一个指针,但是没有指向一个数据。
But if I say turn this into a float, ah it throws a value error exception.
它就会抛出一个值错误异常了,它会告诉我输入了一种错误的值。
Any one of these things would introduce error, but when you start adding them altogether, you get considerable error, so that means--it shows several things.
这些事物都会引入误差,一旦误差集中起来,会变成严重的错误,那就意味着,表现如下
That says it's in here. It's in this tri-block. It raised an exception, but it wasn't and I O error.
这在这里它是一个try程序块,它报出异常,但他不是io错误。
It finds one syntax error at a time, so you have to be a little patient to do it, but you can check that the syntax is right.
它一次会找到一个语法错误,所以你们必须要有点耐心,但是你们可以检查出语法是否正确。
Lots of errors but we've seen this error before.
很多错误,但是这条,我们之前见过。
Well that's better then nothing, but again, there's error built into that.
那总比没有强,但需要强调,这个方式也有漏洞
That's the hope, but of course, there's still error in that.
这便是所要的,但当然,其中仍然会有误差
Now this is a little counterintuitive, because very often people underestimate the amount of calories in things, but what's important here is the-- the error, the size of the error.
这与我们的直觉有些相反,因为经常性地,大家低估了卡路里含量,重要的是,误差和误差的大小
But now the error message gets interesting.
注意到这里的错误信息。
But there's still a lot of error introduced.
但是这依然会造成巨大的误差
You figure that most of those boxes are being eaten by somebody or another, there's some waste that you might calculate in, but there--error gets introduced there trying to estimate that, so you get a number on that.
你的计算中大部分食品,都被人们吃了,浪费的那些也要计算进来,但其中的误差,也要估算出来,最后得出一个数字
But what I ran was GCC and then I get back this big error message.
好吧,我刚运行了一条GCC命令,然后我们得到了这一个,报错信息。
应用推荐