list()函数对原来类型已经是列表的不会在添加[]

i = [1,2,3,4,5,6]
b = list(i)
print(i) # [1,2,3,4,5,6]
print(b) # [1,2,3,4,5,6]
posted @ 2021-07-21 09:14  索匣  阅读(47)  评论(0编辑  收藏  举报