# while循环
list1 = []
i = 0
while i < 10:
    list1.append(i)
    i += 1
print(list1)
# for循环
list2 = []
for j in range(0, 10):
    list2.append(j)
print(list2)
# 列表推导式
list3 = [k for k in range(0, 10)]
print(list3)
