关于Python的集合set

网上那么多说创建集合的语句是:

>>>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

posted @ 2017-12-23 16:18  火军刀  阅读(208)  评论(0)    收藏  举报