ii=set(12,3,5,6,9,9,8,8) print(ii) 输出: Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: set expected at most 1 argument, got 8 修改为: ii=set((12,3,5,6,9,9,8,8)) print(ii) 输出为: {3, 5, 6, 8, 9, 12}
集合