摘要: -> 常常出现在python函数定义的函数名后面,为函数添加元数据,描述函数返回的类型。 : 表示参数的类型建议符 #Python中def函数右侧有个->的含义 def test1(agent: str) -> str: print("Annotations:", test1.__annotatio 阅读全文
posted @ 2022-07-27 12:00 xxxyz 阅读(789) 评论(0) 推荐(0)