标签:pytho traceback erro output cal line last ble ror
arr = [[a],[b]]
set(arr)
output:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unhashable type: ‘list‘
arr =[1,2]
set(arr)
output:
set([1,2])
python中无法被转化为set的list[list组成的list]
标签:pytho traceback erro output cal line last ble ror
原文地址:https://www.cnblogs.com/alfredsun/p/9769458.html