xref
: /
AliOS-Things-master
/
components
/
py_engine
/
tests
/
basics
/
tuple_slice.py
Home
Annotate
Line#
Scopes#
Navigate#
Raw
Download
current directory
1
# tuple slicing
2
3
x
= (
1
,
2
,
3
*
4
)
4
5
print
(
x
[
1
:])
6
print
(
x
[:-
1
])
7
print
(
x
[
2
:
3
])
8