python在列表转换为集合中碰见TypeError: 'set' object is not callable以下是代码
报错依然是TypeError: 'set' object is not callable
第一行变量改个名字
在你的代码中定义了一个变量并命名为"set", 而python的内置函数set也需要使用因此,你在使用set函数时,实际上是调用了定义的变量而不是内置函数,导致出现TypeError。