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