1.list的操作
#list Autho=zhilong_shi
list1=[1,2,3,4]
#查
print(list1,len(list1))
print(list1[1],list1[0:3],list1[0:-1])
#增
list1.append(5)
print(list1)
list1.insert(2,9)
print(list1)
list1.extend([0,0])
print(list1)
list1=list1 +list1
print(list1)
#删
list1.pop(4)
print(list1)
list1.remove(1)
print(list1)
del(list1[2:-1])
print(list1)
list1.pop()
print(list1,"a")
#改
list1=[1,2,3,4]
list1[2]=10
print(list1)
2.tuple 选组
tuple2=(1,2,3,4)
print(tuple2)
#查
print(tuple2[1],tuple2[0:2])
#改 原则上不能改
tuple2=(1,2,3,[0,0])
tuple2[3][0]="x"
tuple2[3][1]="y"
print(tuple2)
#删
del tuple2
print(tuple2)
#改 原则上不能增
tuple2=(1,2,3,4)
tuple3 =tuple2+tuple2
print(tuple3)
3.