<reponame>ximury/python
# 列表去重
list_test = [11, 12, 13, 12, 14, 15, 15, 16]

a = set(list_test)

print(a)

b = list(list_test)

print(b)

# 不换行打印
for i in a:
    print(i, end=" ")

print("-------------")
n = 10
list_a = [0] * n

print(list_a)

# 遍历
list_test1 = [11, 12, 13, 12, 14, 15, 15, 16]
for item in list_test1:
    if item == 12:
        list_test1.remove(item)

print(list_test1)

list_test3 = [11, 12, 13, 12, 14, 15, 15, 16]
list_test4 = [11, 12, 13, 12, 14, 15, 15, 16]
print(list_test3 == list_test4)

list_test5 = []
list_test5 = list_test4
print(list_test5)

# 列表去重
list_test = [11, 12, 13, 12, 14, 15, 15, 16]

a = set(list_test)

print(a)

b = list(list_test)

print(b)

# 不换行打印
for i in a:
    print(i, end=" ")

print("-------------")
n = 10
list_a = [0] * n

print(list_a)

# 遍历
list_test1 = [11, 12, 13, 12, 14, 15, 15, 16]
for item in list_test1:
    if item == 12:
        list_test1.remove(item)

print(list_test1)

list_test3 = [11, 12, 13, 12, 14, 15, 15, 16]
list_test4 = [11, 12, 13, 12, 14, 15, 15, 16]
print(list_test3 == list_test4)

list_test5 = []
list_test5 = list_test4
print(list_test5)
# 列表去重 # 不换行打印 # 遍历