mirror of
https://github.com/micropython/micropython.git
synced 2025-07-23 14:01:10 +02:00
8 lines
123 B
Python
8 lines
123 B
Python
# dict object with special methods
|
|
|
|
d = {}
|
|
d.__setitem__('2', 'two')
|
|
print(d.__getitem__('2'))
|
|
d.__delitem__('2')
|
|
print(d)
|