摘要: 函数 1 Type hinting # Type hinting def add(x: int, y: int) -> int: res = x + y return res print(add.__annotations__) # {'x': <class 'int'>, 'y': <class 阅读全文
posted @ 2020-11-26 22:39 drrug 阅读(136) 评论(0) 推荐(1) 编辑