1. 数组
member = ['lin']
print(member,' ',len(member))
member.append('love')
print(member,' ',len(member))
member.extend(['Lynne','forever'])
print(member,' ',len(member))
member.insert(0,'JJ')
print(member,' ',len(member))
member.remove('lin')
print(member,' ',len(member))
del member[3]
print(member,' ',len(member))
li = member.pop()
print(li,member)
print(member[:1])
print(member[0:2])
2. 分片拷贝
![分片拷贝](https://i-blog.csdnimg.cn/blog_migrate/61780e18e45452a6d77d97b7baecb61f.png)
3.元组
tuple1 = (1,2,3,4,5)
print(tuple1)
tuple2 = (1,)
print(type(tuple2))
list = []
print(type(list))
tuple3 = ('林俊杰','陈奕迅')
tuple3 = tuple3[:1]+('五月天',)+tuple3[1:]
print(tuple3)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b0bb6e86744990789fad98625739d042.png)
4. 字符串格式化
test1 = "{0} love {1}".format("I","you")
print(test1)
test2 = "{a} love {b}".format(a="JJLin",b="Lynne")
print(test2)
5. list()
![list](https://i-blog.csdnimg.cn/blog_migrate/c998b1e1581173b68b65465b4502db39.png)