python 使用函数参数注解

使用函数参数注解是一个很好的办法,它能提示程序员应该怎样正确使用这个函数。

函数注解只存储在函数的annotations 属性中

猜你喜欢

转载自www.cnblogs.com/baxianhua/p/10755073.html