Function Annotations的意思|示意

美 / / 英 / /

函数注释


Function Annotations的网络常见释义

函数注解 由于PEP 3107 函数注解(Function Annotations)相关中文资料极少,本人闲而无事,决定解读一下PEP3107。此PEP由python3.0开始提出。

功能注释 ... Public and internal interfaces 公共和内部的接口 Programming Recommendations 编程建议 Function Annotations 功能注释 ...

Function Annotations相关例句

The full grammar for function annotations can be found in PEP 3107 (see Resources for a link).

函数注释的完整语法可以在PEP 3107(相关链接,请参见参考资料)内找到。

Function annotations associate expressions with parts of a function, such as parameters, at compile time.

函数注释会在编译时将表述与函数的某些部分(比如参数)相关联。

Left to themselves, function annotations are meaningless-that is, they aren't processed unless a third-party library does so.

就其本身而言,函数注释是无意义的—即,除非第三方库对之进行处理,否则它们不会被处理。

The purpose of function annotations is to standardize the way a function's parameters or return values are annotated. The syntax for function annotations is

函数注释的作用是为了标准化函数参数或返回值被注释的方式。

If you specify annotations on the function declaration then you do not have to specify them on the function definition.

如果在函式宣告上指定附注,就不需要在函式定义上指定。