micropython/tests/basics/dict_copy.py

6 wiersze
100 B
Python
Czysty Zwykły widok Historia

a = {i: 2*i for i in range(100)}
2014-01-06 18:11:20 +00:00
b = a.copy()
for i in range(100):
2014-01-06 18:11:20 +00:00
print(i, b[i])
print(len(b))