It could also say, what are the methods associated with the string, 1. I'm sure you can quickly graph it, but notice they aren't the same.
我们也可以说,与字符串1相关联的方法有哪些?,我相信你们可以很快的求出来,但是请注意这跟前面的。
It's useful to have the average acceleration, which you can find by taking similar differences of velocities.
平均加速度也是很有用的,你可以用类似方法,取速度的变化量求出来
Well I'm relying on the contract, if you like, that the manufacturer of square root put together, which is, if I know I'm giving it two floats, which I do because I make sure they're floats, the contract, if you like, of square root says I'll give you back a float.
好吧我能靠一些类似合约来保证,如果这么说你喜欢的话,其实就是当求平方根的方法,获得了两个我已经确认了是浮点数的数后,这个类似合约的东西就会保证,返回一个浮点数。
No one has a clue on how I can go back from these to that?
难道没人能给出倒求出它们的方法吗
But they're not. OK?
让我再来告诉你们一个求乘方的方法吧?
What's the strategy for range?
求射程的方法是什么
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
I wanted to show you that, so, first thing I'm going to do is say, all right, I know I'm going to need square root in here, so I'm going to, in fact, import math.
我们可以开始完成这个方法了,我想让你们看到完成这个方法的过程,第一件事情就是,我们在这儿需要一个求平方根的方法,实际上我将引入math包。
应用推荐