python内容isinstance函数可判断变量类型,返回True或False res = {'a': 1} print(isinstance(res,dict)) if isinstance(res,dict):