Why is list copy not created by [:]

前端 未结 0 1722
别那么骄傲
别那么骄傲 2020-12-15 11:59

I have run following code. I expected that elements of list c will not refer to a, but be a copy os list a, but the result contradicts. Why?

>>> a =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题