标签:
>>> t=range(10)
>>> t
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> t[1:4]=[‘a‘]
>>> t
[0, ‘a‘, 4, 5, 6, 7, 8, 9]
>>> t[2:2]=[]
>>> t
[0, ‘a‘, 4, 5, 6, 7, 8, 9]
>>> t[2:3]=[]
>>> t
[0, ‘a‘, 5, 6, 7, 8, 9]
标签:
原文地址:http://www.cnblogs.com/Citizen/p/4178780.html