把(1,2,3)放到set里都报错了,有大神可以解释下吗?
>>> s=set([1,2(1,2,3)])
<stdin>:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable
你漏敲了一个逗号啦!改成这个就可以啦!
s=set([1,2,(1,2,3)])
天,这我都没发现...感谢感谢!
Sign in to make a reply
维他命_心
把(1,2,3)放到set里都报错了,有大神可以解释下吗?
>>> s=set([1,2(1,2,3)])
<stdin>:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable