Python: TypeError: 'dict' object is not callable
Posted nijiaqing
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python: TypeError: 'dict' object is not callable相关的知识,希望对你有一定的参考价值。
问题: TypeError: ‘dict‘ object is not callable
原因: dict()是python的一个内建函数,如果将dict自定义为一个python字典,在之后想调用dict()函数是会报出“TypeError: ‘dict‘ object is not callable”的错误,
解决办法: >>>del (dict)
以上是关于Python: TypeError: 'dict' object is not callable的主要内容,如果未能解决你的问题,请参考以下文章