- list()
- xrange()和range()
- 翻来覆去之再谈引用
a = ['i', 'am', 'lilei']
b = a
a[2] = 'laowang'
print(b)
- 小技巧之再议删除
a = ['i', 'am', 'lilei'] del(a) del(a[:])
a = ['i', 'am', 'lilei']
b = a
a[2] = 'laowang'
print(b)
a = ['i', 'am', 'lilei']
del(a)
del(a[:])
本文标题:基础篇10-列表应用
本文链接:https://www.haomeiwen.com/subject/cbdpbttx.html
网友评论