还有人停留数天数星期来欣赏公园。
静态字段并不理想,但是当常数值不可能更改(例如一星期内的天数)时,也可以使用这种方法。
Static fields aren't ideal but are reasonably painless when the value of the constant isn't likely to change — such as the values for the days of the week.
那么现在,我用75乘以52,结果是3,900,这就是一个普通人一生中所拥有的星期六的总天数。
Now then, I multiplied 75 times 52 and I came up with 3900 which is the number of Saturdays that the average person has in their entire lifetime.
应用推荐