#!/user/bin/python# -*- coding:utf-8 -*-li = [‘zs‘,‘ls‘,‘ww‘,‘zl‘,‘xx‘]# del li[1:] #1到最后# print(li)del li[0:3] #顾头不顾尾print(li)
原文地址:https://www.cnblogs.com/zhang-da/p/10199282.html
时间: 2024-10-08 09:28:26
#!/user/bin/python# -*- coding:utf-8 -*-li = [‘zs‘,‘ls‘,‘ww‘,‘zl‘,‘xx‘]# del li[1:] #1到最后# print(li)del li[0:3] #顾头不顾尾print(li)
原文地址:https://www.cnblogs.com/zhang-da/p/10199282.html