主页
Python
Python - 复制列表
demo_list_copy3
运行 ❯
×
更改方向
保存代码
更改主题
thislist = ["apple", "banana", "cherry"] mylist = thislist[:] print(mylist)
['apple','banana','cherry']