Python 中的typing 模块提供了一个Dict 类型,用于声明字典类型。它的用法如下: from typing import Dict def func(arg: Dict[str, int]): print(arg) 复制代码.
確定! 回上一頁