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'
时间: 2024-10-14 10:37:15
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'