标签:pre 增删改 bin 增删改查 Python全栈 切片 [1] int utf-8
#!/user/bin/python
# -*- coding:utf-8 -*-
li = [‘zd‘,[1,3,4,5,6],‘ls‘,‘ww‘,‘zl‘]
l1 = li[0]
print(l1)
l2 = li[1]
print(l2)
l3 = li[0:3]
print(l3) #切片顾头不顾尾
2017-12-19python全栈9期第四天第二节之列表的增删改查之切片
标签:pre 增删改 bin 增删改查 Python全栈 切片 [1] int utf-8
原文地址:https://www.cnblogs.com/zhang-da/p/10199156.html