如题又如图 def add(x:int, y:int) -> int: return x + y 答: 是注释。前边的:int也是。见: https://python3-cookbook.readthedocs.io/zh_CN/latest/c07/p03_attach_informatinal_matadata_to_function_arguments.html 相关文章: 2022-12-23 2022-01-05 2022-12-23 2021-12-04 2021-12-14 2022-12-23 2022-12-23 2021-08-19