在Python 中,您可以使用typing 模块来定义元组(tuple)中多个项的类型注解。以下是一个示例: from typing import Tuple def func() -> Tuple[str, int]: return ...
確定! 回上一頁