1. 程式人生 > >關於Python的集合set

關於Python的集合set

post ror 你們 3.6 pytho 關於 lin error traceback

網上那麽多說創建集合的語句是:

>>>a=set([1,2,3])

python 3.6.3,你們真的能運行嗎?

我這裏報:

Traceback (most recent call last):
File "<pyshell#114>", line 1, in <module>
a=set([1,2,3])
TypeError: ‘dict‘ object is not callable

關於Python的集合set