7 lines
69 B
Python
Raw Normal View History

2025-10-10 16:07:00 +08:00
d = {1: 2, 3: 4}
print(len(d))
d.clear()
print(d)
d[2] = 42
print(d)