xref
: /
AliOS-Things-master
/
components
/
py_engine
/
tests
/
basics
/
list_copy.py
Home
Annotate
Line#
Scopes#
Navigate#
Raw
Download
current directory
1
# list copy tests
2
a
= [
1
,
2
, []]
3
b
=
a
.
copy
()
4
a
[-
1
].
append
(
1
)
5
a
.
append
(
4
)
6
print
(
a
)
7
print
(
b
)
8