... 7.3 类注释(Class Comments) 7.4 函数注释(Function Comments) 函数声明注释(Function declaration): ...
基于60个网页-相关网页
函数注释会在编译时将表述与函数的某些部分(比如参数)相关联。
Function annotations associate expressions with parts of a function, such as parameters, at compile time.
函数注释的作用是为了标准化函数参数或返回值被注释的方式。
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
函数注释的完整语法可以在PEP 3107(相关链接,请参见参考资料)内找到。
The full grammar for function annotations can be found in PEP 3107 (see Resources for a link).
It's a little redundant, admittedly, but I include not the same function, but just its prototype, as I say in the comment here.
它确实是有点长的,但是我包含的不是同一个函数,而只是一个原型,就像我这里的注释所说的。
应用推荐