mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 01:20:23 +08:00
8 lines
92 B
Python
8 lines
92 B
Python
|
# list copy tests
|
||
|
a = [1, 2, []]
|
||
|
b = a.copy()
|
||
|
a[-1].append(1)
|
||
|
a.append(4)
|
||
|
print(a)
|
||
|
print(b)
|