
# typing模块:返回值类型规范,并不会报错# python:3.6以后才有的这个模块from typing import List, Tuple, Dict'''int、long、float: 整型、长整形、浮点型bool、str: 布尔型、字符串类型List、 Tuple、 Dict、 Set:列表、元组、字典、集合Iterable、Iterator:可迭代类型、迭代器类型Generator:生成器类型'''# def test(a:int,b:int)->Tuple[int,str]:# def test(a:int,b:int)->Dict:# def test(a,b):# # return a+b### return ('sss','sss')## res=test(1,3)# print(res)
