mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
10 lines
147 B
Python
10 lines
147 B
Python
s = {1}
|
|
print(s.remove(1))
|
|
print(list(s))
|
|
try:
|
|
print(s.remove(1), "!!!")
|
|
except KeyError:
|
|
pass
|
|
else:
|
|
print("failed to raise KeyError")
|