判断是否是字符串a = b = "" print(isinstance(a,str)) print(isinstance(b,str)) False True判断是否是列表a = [,,,] b = "" print(isinstance(a,list)) print(isinstance(b,list))