Didn't create a new list. The old l is still there but it's different than it used to be.
它改变了数组,而并没有新建一个数组,老数组l依旧存在。
Whereas the list assignment you see here did not rebind the object l 1, it changed this. OK?
并没有对包含1的对象做重新绑定,所以这有所改变,对不对?
So let's think about lists. So if l is a list, l sort I can call something like s dot sort, l dot sort.
所以让我们想想链表,所以如果l是一个,链表我可以调用像是s,sort的函数。
Let's suppose, we'll start with the list, I'll call it l 1. This, by the way, is a really bad thing I just did.
让我们假设有一个名为l1的数组,顺便说下,这真是挺糟糕的。
What was-- what's really bad about calling a list l 1?
为什么把一个数组,命名为l1很糟糕呢?
应用推荐