>>> names=['jill','jack']
>>> isinstance(names,list)
Traceback (most recent call last):
File "<pyshell#291>", line 1, in <module>
isinstance(names,list)
TypeError: isinstance() arg 2 must be a type or tuple of types
>>>
我在这里想念什么吗?
最佳答案
您已通过分配给相同名称的本地变量来踩list
。不要那样做
关于python - typeError : isinstance() arg 2 must be a type or tuple of types >>>,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14681096/