This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
5a2a4e9452
micropython
/
tests
/
basics
/
dict_clear.py
7 wiersze
69 B
Python
Czysty
Zwykły widok
Historia
Unescape
Escape
Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 17:38:47 +00:00
d
=
{
1
:
2
,
3
:
4
}
tests: Fix few tests which depend on order of elements in dict. With dict being unordered of course.
2014-04-06 18:28:44 +00:00
print
(
len
(
d
)
)
Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 17:38:47 +00:00
d
.
clear
(
)
print
(
d
)
d
[
2
]
=
42
print
(
d
)