Thursday, 4 January 2024

python data structure, dict is object, but key must not be accssed through dot

https://stackoverflow.com/questions/17761202/is-python-dict-an-object

 dict instances are objects too. But their keys are just not exposed as as attributes.


dic['key']

No comments:

Post a Comment