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.
很简单的有点儿蠢的例子,但是现在,我还是可以通过,一个简单的定义声明,来进去改变参数的值,这样就没意义了,这是因为我并没有用一些。
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
应用推荐