micropython/tests/basics/set_update.py

13 lines
146 B
Python
Raw Normal View History

2014-01-13 03:39:48 +08:00
def report(s):
l = list(s)
l.sort()
print(l)
s = {1}
s.update()
report(s)
s.update([2])
report(s)
s.update([1,3], [2,2,4])
report(s)