name_list = ["laosi", "laowu", "laoliu"]
num_list = [1, 3, 6, 10, 4, 8]
# 增
# name_list.append("laoqi")
# name_list.insert(2,"穷逼")
# temp_list = ["斗地主"]

# extend连接两个列表
# name_list.extend(temp_list)


# 删
# name_list.remove("laowu")
# del 指定索引删除
# del name_list[0]
# clear清空
# name_list.clear()

# pop可以指定索引删除
# name_list.pop(2)


# 改
# name_list[0] = "老四"


# 查
# print(name_list[0])

# 取索引，知道内容，查位置
# print(name_list.index("laowu"))


# 统计
# list_len = len(name_list)
# print(list_len)
# list_count = name_list.count("laoba")


# 排序
# 升序
# num_list.sort()
# name_list.sort()

# 降序
# num_list.sort(reverse=True)
# # 翻转
# name_list.reverse()


# for
for name in name_list:
    print(name)

# print(name_list)
# # print(list_count)
# print(num_list)