micropython/tests/basics/dict_iterator.py

6 wiersze
83 B
Python
Czysty Zwykły widok Historia

2014-01-06 17:17:02 +00:00
d = {1: 2, 3: 4}
els = []
2014-01-06 17:17:02 +00:00
for i in d:
els.append((i, d[i]))
print(sorted(els))