python 函数参数类型判断

return (type(obj).__name__ == 'dict')

字典:dict 
列表:list 
集合:set

猜你喜欢

转载自blog.csdn.net/u012206617/article/details/84388753