'dict' object has no attribute 'a'

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了'dict' object has no attribute 'a'相关的知识,希望对你有一定的参考价值。

a = {}
#a.a = ‘a‘ #AttributeError: ‘dict‘ object has no attribute ‘a‘
#a[‘a‘] #KeyError: ‘a‘
a[a] = a
a #{‘a‘: ‘a‘}

 

以上是关于'dict' object has no attribute 'a'的主要内容,如果未能解决你的问题,请参考以下文章

AttributeError: 'dict_values' object has no attribute 'translate'

facenet pyhton3.5 训练 train_softmax.py 时报错AttributeError: 'dict' object has no attribute '

httprunner 2.x学习9-生成测试报告ExtentReport('dict object' has no attribute 'meta_data'问题已解决

AttributeError: 'list' object has no attribute 'data'智障错误

django model_to_dict ‘QuerySet‘ object has no attribute ‘_meta‘

'module' object has no attribute 'contrib'