Py of type annotations [Reserved]

Transfer: https://docs.python.org/zh-cn/3/library/typing.html

# A typical example of annotation function, plus the parameters for the type 
DEF Greeting (name: STR) -> STR:
     return  ' the Hello ' + name

 Previously only be explained by the variable type annotations.

Some types can simplify the process described.

 

Guess you like

Origin www.cnblogs.com/BlueBlueSea/p/10951370.html