python3学习笔记1--TypeError: 'dict' object is not callable的解决

      dict()是python的一个函数,但我又将dict自定义为一个python字典,在之后想调用dict()函数是会报出“TypeError: 'dict' object is not callable”的错误,只需将之前自定义的变量delete掉即可。

     del (dict)。

    

你可能感兴趣的:(python,对象)