>>> s1=(1,2,3)
>>> s2=(1,[2,3])
>>> d={s1,s2}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'
>>> t=set([s1,s2])
Sign in to make a reply
小龙居会吐泡泡QAQ
>>> s1=(1,2,3)
>>> s2=(1,[2,3])
>>> d={s1,s2}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'
>>> t=set([s1,s2])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: 'list'