阅读背景:

编写转换函数的最佳方法

来源:互联网 

Let's say that I'm writing a function to convert between temperature scales. I want to support at least Celsius, Fahrenheit, and Kelvin. Is it better to pass the source scale and target scale as separate parameters of the function, or some sort of combined parameter?Let's say that I'm writing a function to conver




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: