函数补充---函数的类型提醒

函数的类型提醒

def register(name:str,age:int,hobbbies:tuple)->int:
 print(name)
 print(age)
 print(hobbbies)
 return 111

# register(1,'aaa',[1,])
res=register('egon',18,('play','music'))

猜你喜欢

转载自www.cnblogs.com/zhubincheng/p/12596563.html