这样,当转换执行的时候,将在源代码中为选定的参数生成带有常量修饰符的函数签名。
This will generate a function signature in the source code with the const qualifier for the selected parameter, once the transformation is executed.
default这个特殊方法使用 @cherrypy.expose 修饰符标记为 CherryPy处理程序函数。
The special method default is marked as a CherryPy handler function by the @cherrypy.expose decorator.
在一种情况下,nose不考虑setup和teardown函数的名称:使用 @with_setup 修饰符为某一函数显式地指定它们。
There is one case in which nose does not care about the name of setup and teardown functions: when you specify them explicitly for a particular function using the @with_setup decorator.
注释是可以添加到代码中的修饰符,可以用于包声明、类型声明、构造函数、方法、字段、参数和变量。
Annotations are modifiers you can add to your code and apply to package declarations, type declarations, constructors, methods, fields, parameters, and variables.
所以在研究该语言的函数性元素apply机制前,我将先介绍包和访问修饰符。
So I'm going to take a moment and cover this before diving into one of the more functional elements of the language, the apply mechanism.
类中的常数字段类似于全局或函数常数,不同的只是它的作用范围是该类,而且它可以用多个修饰符来指定其可见性和用法。
A constant field in a class is similar to a global or function constant, except that it is scoped to the class and it can have various modifiers governing its visibility and usage.
析构函数不能有参数,不能有访问级别修饰符,不能被显式调用。实例的析构函数在垃圾收集时自动调用。
Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be invoked explicitly. The destructor for an instance is invoked automatically during garbage collection.
注意,如果您不对构造函数使用访问修饰符,则在默认情况下它仍为私有构造函数。
Note that if you do not use an access modifier with the constructor it will still be private by default.
析构函数既没有修饰符,也没有参数。
析构函数既没有修饰符,也没有参数。
应用推荐