If you really want to be obnoxious, you can do this because really these operators just undo themselves, right?
如果你的确有点反感,你可以这样做,因为这些操作符可以撤销它们自己,对不?
to actually run the board in the studios. And so now I'm certified to host different radio shows,
这样我才能操作演播室力的仪器。现在,我已经有资格主持不同的电台节目了。
And so the program may do different things on different runs. We'll see a lot of that, because it's used a lot in modern computing.
因此程序会对不同的输入做不同的操作,我们会看到很多这样的情况,因为它在现代计算中被广泛应用。
You don't need this hack of just, like, manually adding a decimal point just to fix that problem.
你不需要这样来操作,比如,手动地加入小数点来修正这个错误。
The HOLC said, that's a lot more sensible; so they demanded that that be done.
房主贷款公司认为这样合理得多,因此他们要求这么操作抵押贷款
We do this in the undergraduate Biomedical Engineering laboratory in the Malone Building so that we can do demonstrations and sort of hands on projects to really get a little bit deeper into the subject that we're considering.
开会的地点在,生物医学工程本科生实验室,在马龙大楼,这样我们就能通过做演示和实际操作,使大家较深刻地了解,我们讲过的东西
And one of the things neophytes trip over early on is that we'll soon see there's not only an equal sign operator, there's equals equals.
这样我们还要引入了一个新的操作符,我们将看到这里不仅有一个等号的操作,还有双等号。
If I now say, I'm going to go ahead and change the radius of this, something, my polar form did it right, but what happened to the Cartesian form?
如果我现在说,我要去改变这里的半径,一些这样的操作,我的极坐标形式,进行了正确的改动?
Might want to multiply them together.
这样就能对它们做一些操作了。
So there are some downsides, in my view, to doing operator overloading, but there's some real pluses.
它还可以应用于其他一些东西,因此这样做操作符重载,就会产生一些负面影响了,以我的观点来看的话。
Which would have a bunch of operations, like, I won't go into what they might be.
他们会有一些这样那样的操作,我不打算细讲。
We saw some quadratic algorithms, typically those are things with multiple nested loops, or iterative or recursive calls, where you're doing, say, a linear amount of time but you're doing it a linear number of times and so it becomes quadratic, and you'll see other polynomial kinds of algorithms.
我们看过一些平方算法,他们一般进行了多次嵌套循环,或者递归迭代调用,对一个线性操作调用线性次,这样就变成平方次了,以后你们能看到,一些多项式算法。
And in Python the expression is, operand, operator, operand, when we're doing simple expressions like this, and if I give it to the interpreter, it gives me back exactly what you'd expect, which is that value. OK?
在Python中表达式就是,运算对象,操作符,运算对象,当我们处理这样的简单表达式的时候,我把表达式传给处理器,处理器给我返回了我想要的结果,对不对?
Because the IFs are saying, if it's true do this, otherwise skip on it.
因为IF是这样的,如果结果是真的,进行如下操作,如果不是那么跳过它吧。
应用推荐