mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 17:40:24 +08:00
b4dea46d8b
With dict being unordered of course.
6 lines
83 B
Python
6 lines
83 B
Python
d = {1: 2, 3: 4}
|
|
els = []
|
|
for i in d:
|
|
els.append((i, d[i]))
|
|
print(sorted(els))
|