I know it looks like a simple and silly little example, but at the moment, I still have the ability to go in and change the values of the parameters by that little definition.
很简单的有点儿蠢的例子,但是现在,我还是可以通过,一个简单的定义声明,来进去改变参数的值,这样就没意义了,这是因为我并没有用一些。
It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
应用推荐