python 函数入参指定类型
from typing import List, Tuple, Dict

names: List[str] = ['Germey', 'Guido']
version: Tuple[int, int, int] = (3, 7, 4)
operations: Dict[str, bool] = {'show': False, 'sort': True}

posted on 2022-10-27 17:23  没有陌生人  阅读(6)  评论(0编辑  收藏  举报