: str, f: float, b: bool or str):
print(a, string, f, b)
bool or str:代表参数 b 可以是布尔类型,也可以是字符串
指定函数返回的参数类型...List,第二个元素是 Tuple,第三个元素是 Dict,第四个元素可以是字符串或布尔
def add(a: int, string: str, f: float, b: bool or str) -...> Tuple[List, Tuple, Dict, str or bool]:
list1 = list(range(a))
tup = (string, string, string...Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 261, in inner
return func...CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 683, in __getitem