如何使用Python类型提示编写函数声明,以便函数返回多个返回值?
是否允许以下语法?
def greeting(name: str) -> str, List[float], int : // do something return a,b,c
python type-hinting python-3.x typehints
python ×1
python-3.x ×1
type-hinting ×1
typehints ×1