Loading

摘要: Python 3 → 是函数注释的一部分,表示函数返回值的类型。 def useful_function(x) -> int: # Useful code, using x, here return x 可以通过函数的 annotations 看到。 >>> def useful_function( 阅读全文
posted @ 2022-02-06 13:56 DuKe渡客 阅读(740) 评论(0) 推荐(0) 编辑