A particular instance of that is deep versus shallow copy.
一个很好的例子就是深复制和浅复制,当你想要复制一个链表的时候。
Right, OK. So what I do to open the book is to ask the reader to image that they walking past a shallow pond, maybe somewhere in the park or or university campus.
好的,我在这本书的开篇,请读者想象这样一个画面,你走过,一个浅浅的池塘,可能是公园里,或是大学校园里。
So, for instance, if you take a glass of water and you pour it into another glass that's shallow or tall, it won't change the amount of water you have.
比如说,你有一杯水,将水倒进另一个更浅或者更深的杯子里,含水量并未发生任何改变
应用推荐