如果有一个值在应用程序中始终不变,则可以定义一个命名常数,并用该常数取代文本值。
If you have a value that never changes in your application, you can define a named constant and use it in place of a literal value.
顺便说一下,我想要强调,我给这些常数命名是为了更方便之后更改。
By the way, I want to emphasize that I've named these constants to make it easier to change.
不是很好吗,他们以教授之名给常数命名。
它也被命名为阿基米德常数。
它也被命名为阿基米德常数。
应用推荐