首页 > 代码库 > 'dict' object has no attribute 'a'

'dict' object has no attribute 'a'

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

 

'dict' object has no attribute 'a'