Python列表的复制和循环输出

list1 = ['Tom','Jerry','Chris']
list2 = list1.copy()
print(list2)

for value in list2:
    print(value)

posted @ 2021-03-08 16:12  code-G  阅读(363)  评论(0编辑  收藏  举报