# -> 常常出现在python函数定义的函数名后面,为函数添加元数据,描述函数返回的类型。 # : 表示参数的类型建议符 def one(agent: str) -> str: print("Annotations:", one.__annotations__) return agent def two(agent: str): print("Annotations:", two.__annotations__) return agent print('test') one('cat') two('dog')