Python 7
[Python 100] Python 100
[:]
#!/usr/bin/python
# -*- coding: UTF-8 -*-
a = [1, 2, 3]
b = a[:]
print (b)
[1, 2, 3]
[Python 100] Python 100
| [ Web Proxy ] |
| Viewing: https://www.runoob.com/python/python-exercise-example7.html | [Back] [Original] |
[Python 100] Python 100
[:]
[1, 2, 3]
[Python 100] Python 100
| Web Proxy Viewer | New URL | Original Page |
110***[email protected]
Python2
Python3
110***[email protected]
Chivalry
825***[email protected]
for
#!/usr/bin/python # -*- coding: UTF-8 -*- l = [1,2,3,4,5] p = [] for i in range(len(l)): p.append(l[i]) print pChivalry
825***[email protected]
maq***[email protected]
:
maq***[email protected]
solong
157***[email protected]
solong
157***[email protected]
xuj***[email protected]
xuj***[email protected]
chen
127***[email protected]
chen
127***[email protected]
295***[email protected]
12
295***[email protected]
whaike
hua***[email protected]
whaike
hua***[email protected]