copy --- copy objects

Role: to provide some functions, you can use a shallow copy or a deep copy semantics copy objects

1. shallow copy

  Shallow copy (shallow copy) copy () is to create a vessel, which filled the original content of the object reference, when a shallow copy of the established list of objects, will construct a new list. Elements of the original object and append to this list .

 

Guess you like

Origin www.cnblogs.com/superSmall/p/12575950.html