What are the options to clone or copy a list in Python? 在Python中克隆或复制列表有哪些选项? this
While using new_list = my_list
, any modifications to new_list
changes my_list
everytime. 使用new_list = my_list
,对new_list
任何修改new_list
每次更改my_list
。 Why is this? 为何是这样? spa