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ść
f243851ccd
micropython
/
tests
/
basics
/
list_slice_3arg.py
10 wiersze
128 B
Python
Czysty
Zwykły widok
Historia
Unescape
Escape
objlist: Implement support for arbitrary (3-arg) slices.
2014-05-25 19:12:56 +00:00
x
=
list
(
range
(
10
)
)
print
(
x
[
:
:
-
1
]
)
print
(
x
[
:
:
2
]
)
print
(
x
[
:
:
-
2
]
)
tests: Add small testcase for 3-arg slices.
2014-05-25 19:17:06 +00:00
x
=
list
(
range
(
9
)
)
print
(
x
[
:
:
-
1
]
)
print
(
x
[
:
:
2
]
)
print
(
x
[
:
:
-
2
]
)